refs.c: ensure struct whose member may be passed to realloc is initialized
[git/jrn.git] / t / t4109 / patch2.patch
blob8c6b06d536a06d786f0752ec2aa2a7fae22c8926
1 diff --git a/main.c b/main.c
2 --- a/main.c
3 +++ b/main.c
4 @@ -1,7 +1,9 @@
5 +#include <stdlib.h>
6 #include <stdio.h>
8 int func(int num);
9 void print_int(int num);
10 +void print_ln();
12 int main() {
13 int i;
14 @@ -10,6 +12,8 @@
15 print_int(func(i));
18 + print_ln();
20 return 0;
23 @@ -21,3 +25,7 @@
24 printf("%d", num);
27 +void print_ln() {
28 + printf("\n");