Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/main.c @ 779:057ffe7c43dc
Initialize locale charset earlier
This patch fixes a segfault when scr_LogPrint() is called before
scr_InitCurses().
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Mon, 27 Mar 2006 22:09:30 +0200 |
parents | e6d42f239541 |
children | d3af6877a7df |
comparison
equal
deleted
inserted
replaced
778:a22665116104 | 779:057ffe7c43dc |
---|---|
227 } | 227 } |
228 } | 228 } |
229 | 229 |
230 /* Initialize commands system */ | 230 /* Initialize commands system */ |
231 cmd_init(); | 231 cmd_init(); |
232 /* Initialize charset */ | |
233 scr_InitLocaleCharSet(); | |
232 | 234 |
233 /* Parsing config file... */ | 235 /* Parsing config file... */ |
234 ret = cfg_read_file(configFile); | 236 ret = cfg_read_file(configFile); |
235 /* free() configFile if it has been allocated during options parsing */ | 237 /* free() configFile if it has been allocated during options parsing */ |
236 g_free(configFile); | 238 g_free(configFile); |