- Value stored to 'p' is never read.
- Value stored to 'd' is never read.
Found by Clang Static Analyzer.
SVN-Revision: 1618
p += filename_end - filename;
if (need_slash)
*p++ = '/';
- *p++ = '\0';
+ *p = '\0';
return (dest);
}
static int
archive_write_pax_finish(struct archive_write *a)
{
- struct pax *pax;
int r;
if (a->compressor.write == NULL)
return (ARCHIVE_OK);
- pax = (struct pax *)a->format_data;
r = write_nulls(a, 512 * 2);
return (r);
}
break;
}
/* Add trailing NUL character so output is a valid C string. */
- *d++ = '\0';
+ *d = '\0';
return (out);
}