]> wimlib.net Git - wimlib/blobdiff - src/lookup_table.c
Add read_stream_list()
[wimlib] / src / lookup_table.c
index 496cc8ee078e23e91f606d5756f46e0c58dba45a..432873414d822a81fbda43bbcbd2c48af07bcd0d 100644 (file)
@@ -381,7 +381,7 @@ sort_stream_list_by_sequential_order(struct list_head *stream_list,
 
        array_size = num_streams * sizeof(array[0]);
        array = MALLOC(array_size);
 
        array_size = num_streams * sizeof(array[0]);
        array = MALLOC(array_size);
-       if (!array)
+       if (array == NULL)
                return WIMLIB_ERR_NOMEM;
        cur = stream_list->next;
        for (i = 0; i < num_streams; i++) {
                return WIMLIB_ERR_NOMEM;
        cur = stream_list->next;
        for (i = 0; i < num_streams; i++) {