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:
Norbert Warmuth 1998-10-05 19:38:44 +00:00
parent b99161ec69
commit 6c4af731df
2 changed files with 8 additions and 2 deletions

View File

@ -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

View File

@ -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;
}