mirror of
https://github.com/vale981/spectrwm
synced 2025-03-05 09:51:38 -05:00
avoid a free on an uninitialized variable by setting optval to NULL.
This commit is contained in:
parent
9d5207775b
commit
0f58463601
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue