Commit 8828d6f4 authored by Thomas Schmitt's avatar Thomas Schmitt

Bug fix: -disk_pattern on -add "" -- yielded SIGSEGV

parent 7066fd4e
......@@ -121,6 +121,7 @@ int Xorriso_opt_args(struct XorrisO *xorriso, char *cmd,
*optc= *end_idx - idx;
*optv= NULL;
if(*optc<=0 || !do_expand) {
copy_args:;
if(*optc > 0) {
Xorriso_alloc_meM(*optv, char *, *optc);
for(i= 0; i < *optc; i++) {
......@@ -153,7 +154,7 @@ no_memory:;
}
if(nump<=0) { /* Only empty texts. May the caller get happy with them. */
free(patterns);
return(1);
goto copy_args;
}
if(flag&2)
ret= Xorriso_expand_disk_pattern(xorriso, nump, patterns, was_empty,
......
#define Xorriso_timestamP "2019.09.01.071948"
#define Xorriso_timestamP "2019.09.01.072438"
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