Enclose macro argument in parentheses

This commit is contained in:
Christian Göttsche 2020-04-07 21:47:06 +02:00
parent ef7b4e5c28
commit 812832e4e1

View file

@ -422,7 +422,7 @@ void addparentstats(struct dir *d, int64_t size, int64_t asize, uint64_t mtime,
#define wrap_oom(f) \
void *ptr;\
char buf[128];\
while((ptr = f) == NULL) {\
while((ptr = (f)) == NULL) {\
close_nc();\
(void) !write(2, oom_msg, sizeof(oom_msg));\
(void) !read(0, buf, sizeof(buf));\