}
temp_filename_length
= dumpdir_length + suffix_length + 1;
- if (!outbase_length)
- temp_filename_length += basename_length;
- else
+ if (outbase_length)
temp_filename_length += outbase_length;
+ else
+ temp_filename_length += basename_length;
tmp = (char *) alloca (temp_filename_length);
if (dumpdir_length)
memcpy (tmp, dumpdir, dumpdir_length);
- if (!outbase_length)
- memcpy (tmp + dumpdir_length, input_basename,
- basename_length);
- else
+ if (outbase_length)
memcpy (tmp + dumpdir_length, outbase,
outbase_length);
+ else if (basename_length)
+ memcpy (tmp + dumpdir_length, input_basename,
+ basename_length);
memcpy (tmp + temp_filename_length - suffix_length - 1,
suffix, suffix_length);
if (adjusted_suffix)