Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
spectrwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d52077
)
avoid a free on an uninitialized variable by setting optval to NULL.
author
David Hill
<dhill@conformal.com>
Sun, 11 Nov 2012 14:14:15 +0000
(09:14 -0500)
committer
David Hill
<dhill@conformal.com>
Sun, 11 Nov 2012 14:14:15 +0000
(09:14 -0500)
spectrwm.c
patch
|
blob
|
history
diff --git
a/spectrwm.c
b/spectrwm.c
index
a565162
..
132743f
100644
(file)
--- a/
spectrwm.c
+++ b/
spectrwm.c
@@
-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;