Skip to content
Snippets Groups Projects
Commit 6b1e7328 authored by Štěpán Balážik's avatar Štěpán Balážik
Browse files

kresc: fix: possible uninitialized variable

parent 96d29c0e
Branches
Tags
No related merge requests found
......@@ -142,7 +142,7 @@ static unsigned char complete(EditLine * el, int ch)
}
char *token = strtok(globals_tok, "\n");
int matches = 0;
char *lastmatch;
char *lastmatch = NULL;
while (token) {
if (argv[0] && starts_with(token, argv[0])) {
printf("\n%s (%s)", token,
......@@ -207,7 +207,7 @@ static unsigned char complete(EditLine * el, int ch)
}
char *token = strtok(members_tok, "\n");
int matches = 0;
char *lastmatch;
char *lastmatch = NULL;
if (!dot || dot - argv[0] + 1 == strlen(argv[0])) {
//Prints all members.
while (token) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment