diff options
author | Richard Levitte <levitte@openssl.org> | 2002-08-15 22:06:00 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-08-15 22:06:00 +0000 |
commit | 8435a755fd9b905f35b2986986ec7a860b2472b7 (patch) | |
tree | f1e4130fcfc51af3506a07f9cf930faf7a992074 /test/dummytest.c | |
parent | 52c29b7b994e85f775d076646fe5aa6714cc834c (diff) | |
download | openssl-8435a755fd9b905f35b2986986ec7a860b2472b7.tar.gz |
q may be used uninitialised
Diffstat (limited to 'test/dummytest.c')
-rw-r--r-- | test/dummytest.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/dummytest.c b/test/dummytest.c index f98f003ef9..5b4467e042 100644 --- 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--; |