ref: 4f6b84ae2b0ddb9b0ed54470606262224148855f
parent: 52549a2648ebf58b4d31fae7290ad5651638046c
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Thu Nov 11 03:14:05 EST 2021
tests/cc: Fix 0129-initi.c The test was getting the content of a NULL pointer.
--- a/tests/cc/execute/0129-initi.c
+++ b/tests/cc/execute/0129-initi.c
@@ -1,6 +1,7 @@
struct range {
long quant;
-} *a;
+} a[] = {1, 0};
+
long b;
int
@@ -8,4 +9,6 @@
{
struct range r = a[0];
b = r.quant;
+
+ return (b == 1) ? 0 : 1;
}