projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52c29b7
)
q may be used uninitialised
author
Richard Levitte
<levitte@openssl.org>
Thu, 15 Aug 2002 22:06:00 +0000
(22:06 +0000)
committer
Richard Levitte
<levitte@openssl.org>
Thu, 15 Aug 2002 22:06:00 +0000
(22:06 +0000)
test/dummytest.c
patch
|
blob
|
history
diff --git
a/test/dummytest.c
b/test/dummytest.c
index f98f003ef98e0c57e190b13294bc6198c41beb24..5b4467e042bb7f193cd5c5bc18355445af2de12b 100644
(file)
--- a/
test/dummytest.c
+++ b/
test/dummytest.c
@@
-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--;