diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/wayland-util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wayland-util.h b/src/wayland-util.h index c99069c..929a34f 100644 --- a/src/wayland-util.h +++ b/src/wayland-util.h @@ -598,6 +598,7 @@ wl_array_copy(struct wl_array *array, struct wl_array *source); */ #define wl_array_for_each(pos, array) \ for (pos = (array)->data; \ + (array)->size != 0 && \ (const char *) pos < ((const char *) (array)->data + (array)->size); \ (pos)++) |
