projects
/
users
/
dwmw2
/
openconnect.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d524d58
)
Fix uninitialised 'matcher' in autocompletion
author
David Woodhouse <dwmw2@infradead.org>
Wed, 15 Apr 2020 14:05:33 +0000
(15:05 +0100)
committer
David Woodhouse <dwmw2@infradead.org>
Wed, 15 Apr 2020 14:05:33 +0000
(15:05 +0100)
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
main.c
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index 20744397f015c692558c0664c53d4efb0c3dad7c..a0522b18eb9c29287df9cd41b95a9c44d6e2741a 100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-1169,8
+1169,9
@@
static int autocomplete(int argc, char **argv)
break;
if (argv[thisind] == comp_opt) {
- char *matcher
= NULL
;
+ char *matcher;
empty_opt:
+ matcher = NULL;
if (!strncmp(comp_opt, "--", 2))
matcher = comp_opt + 2;
else if (!strcmp(comp_opt, "-"))