avoid a free on an uninitialized variable by setting optval to NULL.

This commit is contained in:
David Hill 2012-11-11 09:14:15 -05:00
parent 9d5207775b
commit 0f58463601

View file

@ -7226,7 +7226,7 @@ int
conf_load(const char *filename, int keymapping)
{
FILE *config;
char *line = NULL, *cp, *optsub, *optval;
char *line = NULL, *cp, *optsub, *optval = NULL;
size_t linelen, lineno = 0;
int wordlen, i, optidx;
struct config_option *opt = NULL;