Skip to content

Commit 9b63d82

Browse files
committed
Avoid warnings about missing field initialiser on some platforms.
1 parent c8be0bf commit 9b63d82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

str.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ typedef struct
4747
} str;
4848

4949
// NULL string
50-
#define str_null ((str){ 0 })
50+
#define str_null ((str){ 0, 0 })
5151

5252
// helper macros
5353
#define _ref_info(n) ((n) << 1)

0 commit comments

Comments
 (0)