q may be used uninitialised
This commit is contained in:
parent
e73308638a
commit
bde63f803a
1 changed files with 3 additions and 2 deletions
|
@ -8,7 +8,7 @@
|
|||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
char *p, *q, *program;
|
||||
char *p, *q = 0, *program;
|
||||
|
||||
p = strrchr(argv[0], '/');
|
||||
if (!p) p = strrchr(argv[0], '\\');
|
||||
|
@ -34,7 +34,8 @@ int main(int argc, char *argv[])
|
|||
}
|
||||
|
||||
for(p = program; *p; p++)
|
||||
if (islower(*p)) *p = toupper(*p);
|
||||
if (islower((unsigned char)(*p)))
|
||||
*p = toupper((unsigned char)(*p));
|
||||
|
||||
q = strstr(program, "TEST");
|
||||
if (q > p && q[-1] == '_') q--;
|
||||
|
|
Loading…
Reference in a new issue