mirror of https://github.com/MidnightCommander/mc
Merge branch '1973_segfault_panel_format'
* 1973_segfault_panel_format: Ticket #1973: Segfault in 'Listing mode' dialog
This commit is contained in:
commit
c79e5939e6
|
@ -1526,7 +1526,7 @@ parse_display_format (WPanel *panel, const char *format, char **error, int issta
|
|||
while (*format){ /* format can be an empty string */
|
||||
int found = 0;
|
||||
|
||||
darr = g_new (format_e, 1);
|
||||
darr = g_new0 (format_e, 1);
|
||||
|
||||
/* I'm so ugly, don't look at me :-) */
|
||||
if (!home)
|
||||
|
|
Loading…
Reference in New Issue