Commit be8b50b8 authored by Georg Lehmann's avatar Georg Lehmann Committed by Alexandre Julliard

winevulkan: Avoid zero-sized allocations.

Fixes some -Wmaybe-uninitialized warnings in the next patch. Signed-off-by: 's avatarGeorg Lehmann <dadschoorse@gmail.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent bc70c4da
......@@ -2150,7 +2150,7 @@ class ConversionFunction(object):
body += "#endif /* USE_STRUCT_CONVERSION */\n"
body += " unsigned int i;\n\n"
body += " if (!in) return NULL;\n\n"
body += " if (!in || !count) return NULL;\n\n"
body += " out = malloc(count * sizeof(*out));\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment