Skip to content

Commit

Permalink
Avoid warnings about missing field initialiser on some platforms.
Browse files Browse the repository at this point in the history
  • Loading branch information
maxim2266 committed Feb 8, 2021
1 parent c8be0bf commit 9b63d82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion str.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ typedef struct
} str;

// NULL string
#define str_null ((str){ 0 })
#define str_null ((str){ 0, 0 })

// helper macros
#define _ref_info(n) ((n) << 1)
Expand Down

0 comments on commit 9b63d82

Please sign in to comment.