You need to sign in or sign up before continuing.
提交 8435a755 编写于 作者: R Richard Levitte

q may be used uninitialised

上级 52c29b7b
......@@ -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--;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册