diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-05-08 20:24:11 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-05-08 20:24:11 -0500 |
commit | 12ecdf5c20fcfc0ab7f597e9ebe2ce1f9bf63b1a (patch) | |
tree | d2951c7806d164eb42eb51ed1eac63502e2ab683 /libgcompat/malloc.c | |
parent | ee849d022bea6bcf7fa2f7747b993034b16096fa (diff) | |
download | gcompat-12ecdf5c20fcfc0ab7f597e9ebe2ce1f9bf63b1a.tar.gz gcompat-12ecdf5c20fcfc0ab7f597e9ebe2ce1f9bf63b1a.tar.bz2 gcompat-12ecdf5c20fcfc0ab7f597e9ebe2ce1f9bf63b1a.tar.xz gcompat-12ecdf5c20fcfc0ab7f597e9ebe2ce1f9bf63b1a.zip |
string: check NULL before using src here, too
Diffstat (limited to 'libgcompat/malloc.c')
-rw-r--r-- | libgcompat/malloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgcompat/malloc.c b/libgcompat/malloc.c index 3f54a06..5a82bc4 100644 --- a/libgcompat/malloc.c +++ b/libgcompat/malloc.c @@ -64,7 +64,7 @@ alias(__libc_malloc, __malloc); void *__libc_memalign(size_t align, size_t len) { - void *result; + void *result = NULL; if (posix_memalign(&result, align, len) != 0) return NULL; return result; |