X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=test%2Fdummytest.c;h=fc105712d3844e9d7d61981e819e28dccdf389a7;hp=f98f003ef98e0c57e190b13294bc6198c41beb24;hb=3c9baf25f12e0b9300262546764ba7c22dcf8b74;hpb=1cc67fa80c38606edaedaf60a97d10584f94c416 diff --git a/test/dummytest.c b/test/dummytest.c index f98f003ef9..fc105712d3 100644 --- a/test/dummytest.c +++ b/test/dummytest.c @@ -2,13 +2,13 @@ #include #include #include +#include #include #include -#include 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--;