projects
/
vimb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd943ec
)
Fixed possible use of uninitialized variable.
author
Daniel Carl
<danielcarl@gmx.de>
Sat, 6 Sep 2014 22:59:41 +0000
(
00:59
+0200)
committer
Daniel Carl
<danielcarl@gmx.de>
Sat, 6 Sep 2014 22:59:41 +0000
(
00:59
+0200)
src/autocmd.c
patch
|
blob
|
history
diff --git
a/src/autocmd.c
b/src/autocmd.c
index
e5b4e10
..
97fc154
100644
(file)
--- a/
src/autocmd.c
+++ b/
src/autocmd.c
@@
-145,7
+145,7
@@
gboolean autocmd_add(char *name, gboolean delete)
guint bits;
char *parse, *word, *pattern, *excmd;
GSList *item;
- AuGroup *grp;
+ AuGroup *grp
= NULL
;
parse = name;
@@
-222,7
+222,7
@@
gboolean autocmd_add(char *name, gboolean delete)
}
/* add the new autocmd */
- if (excmd) {
+ if (excmd
&& grp
) {
AutoCmd *cmd = new_autocmd(excmd, pattern);
cmd->bits = bits;