"\\System Volume Information\n"
"\\RECYCLER\n"
"\\Windows\\CSC\n"
-"\n"
-"[CompressionExclusionList]\n"
-"*.mp3\n"
-"*.zip\n"
-"*.cab\n"
-"\\WINDOWS\\inf\\*.pnf\n"
);
enum {
nlines++;
}
- sources = calloc(nlines, sizeof(*sources));
+ /* Always allocate at least 1 slot, just in case the implementation of
+ * calloc() returns NULL if 0 bytes are requested. */
+ sources = calloc(nlines ?: 1, sizeof(*sources));
if (!sources)
goto oom;
p = source_list_contents;