summaryrefslogtreecommitdiff
path: root/src/lib/libssl/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/test')
-rw-r--r--src/lib/libssl/test/dummytest.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libssl/test/dummytest.c b/src/lib/libssl/test/dummytest.c
index f98f003ef9..5b4467e042 100644
--- a/src/lib/libssl/test/dummytest.c
+++ b/src/lib/libssl/test/dummytest.c
@@ -8,7 +8,7 @@
8 8
9int main(int argc, char *argv[]) 9int main(int argc, char *argv[])
10 { 10 {
11 char *p, *q, *program; 11 char *p, *q = 0, *program;
12 12
13 p = strrchr(argv[0], '/'); 13 p = strrchr(argv[0], '/');
14 if (!p) p = strrchr(argv[0], '\\'); 14 if (!p) p = strrchr(argv[0], '\\');
@@ -34,7 +34,8 @@ int main(int argc, char *argv[])
34 } 34 }
35 35
36 for(p = program; *p; p++) 36 for(p = program; *p; p++)
37 if (islower(*p)) *p = toupper(*p); 37 if (islower((unsigned char)(*p)))
38 *p = toupper((unsigned char)(*p));
38 39
39 q = strstr(program, "TEST"); 40 q = strstr(program, "TEST");
40 if (q > p && q[-1] == '_') q--; 41 if (q > p && q[-1] == '_') q--;