diff options
Diffstat (limited to 'parted/strlist.c')
-rw-r--r-- | parted/strlist.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/parted/strlist.c b/parted/strlist.c index 71cba59..7901789 100644 --- a/parted/strlist.c +++ b/parted/strlist.c @@ -166,6 +166,8 @@ wchar_to_str (const wchar_t* str, size_t count) goto error; result = realloc (result, strlen (result) + 1); + if (!result) + goto error; return result; error: |