|
From: <sv...@va...> - 2016-02-18 18:10:12
|
Author: iraisr
Date: Thu Feb 18 18:10:05 2016
New Revision: 15798
Log:
Fix compiler warning about using uninitialized variable 'arr'.
Reported by gcc 5.3. The test outcome remains unchanged.
n-i-bz
Modified:
trunk/none/tests/solaris/stack-overflow.c
Modified: trunk/none/tests/solaris/stack-overflow.c
==============================================================================
--- trunk/none/tests/solaris/stack-overflow.c (original)
+++ trunk/none/tests/solaris/stack-overflow.c Thu Feb 18 18:10:05 2016
@@ -2,4 +2,4 @@
Written in a single line so there is no confusion on what line
the overflow occurs. */
-int main(int argc, char *argv[]) { volatile int arr[1000]; return main(arr[argc%2], 0); }
+int main(int argc, char *argv[]) { volatile int arr[1000] = {0}; return main(arr[argc%2], 0); }
|