mirror of https://github.com/MidnightCommander/mc
Mon Oct 5 21:33:14 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
* screen.c (parse_display_format): Don't dereference NULL pointer when format string is an empty string.
This commit is contained in:
parent
b99161ec69
commit
6c4af731df
|
@ -1,3 +1,8 @@
|
|||
Mon Oct 5 21:33:14 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
|
||||
|
||||
* screen.c (parse_display_format): Don't dereference NULL pointer
|
||||
when format string is an empty string.
|
||||
|
||||
Mon Oct 5 19:59:56 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
|
||||
|
||||
* main.c (translate_url_to_new_syntax): Translate ftp:// to an
|
||||
|
|
|
@ -1222,7 +1222,7 @@ parse_display_format (WPanel *panel, char *format, char **error, int isstatus, i
|
|||
*/
|
||||
format = parse_panel_size (panel, format, isstatus);
|
||||
|
||||
while (*format){
|
||||
while (*format){ /* format can be an empty string */
|
||||
int found = 0;
|
||||
|
||||
darr = xmalloc (sizeof (format_e), "parse_display_format");
|
||||
|
@ -1313,7 +1313,8 @@ parse_display_format (WPanel *panel, char *format, char **error, int isstatus, i
|
|||
}
|
||||
|
||||
*res_total_cols = total_cols;
|
||||
home->items = items;
|
||||
if (home)
|
||||
home->items = items;
|
||||
return home;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue