summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libstdc++-v3/testsuite/21_strings/c_strings.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/libstdc++-v3/testsuite/21_strings/c_strings.cc b/libstdc++-v3/testsuite/21_strings/c_strings.cc
index de0ad2571a5..7f6cd9fb5ef 100644
--- a/libstdc++-v3/testsuite/21_strings/c_strings.cc
+++ b/libstdc++-v3/testsuite/21_strings/c_strings.cc
@@ -35,8 +35,8 @@ void test01()
const char* ccarray2 = "san francisco sunny-day park inspectors";
char carray[30];
strcpy(carray, ccarray1);
- void* v;
- const void* cv;
+ void* v = carray;
+ const void* cv = ccarray1;
// const char* strchr(const char* s, int c);
// char* strchr(char* s, int c);
@@ -72,8 +72,8 @@ void test02()
const char* ccarray2 = "san francisco sunny-day park inspectors";
char carray[30];
strcpy(carray, ccarray1);
- void* v;
- const void* cv;
+ void* v = carray;
+ const void* cv = ccarray1;
memchr(cv, '/', 3);
strchr(ccarray1, '/');
OpenPOWER on IntegriCloud