Ticket #1942: 10_locale_c_iconv.patch

File 10_locale_c_iconv.patch, 398 bytes (added by mcermak, 13 years ago)

Fix for invalid pointer dereference in str_uninit_strings()

  • src/strutil.c

    diff -Naur mc-4.7.0.1/src/strutil.c mc-build/src/strutil.c
    old new  
    404404void 
    405405str_uninit_strings (void) 
    406406{ 
    407     g_iconv_close (str_cnv_not_convert); 
     407    if (str_cnv_not_convert != INVALID_CONV) 
     408        g_iconv_close (str_cnv_not_convert); 
    408409    g_free (codeset); 
    409410} 
    410411