assert(dp);
assert(f);
+ assert(bufsz);
DBG(SCRIPT, ul_debugobj(dp, " parsing line %zu", dp->nlines));
/* read the next non-blank non-comment line */
do {
+ buf[0] = '\0';
if (dp->fn_fgets) {
if (dp->fn_fgets(dp, buf, bufsz, f) == NULL)
return 1;
*/
int fdisk_script_read_file(struct fdisk_script *dp, FILE *f)
{
- char buf[BUFSIZ];
+ char buf[BUFSIZ] = { '\0' };
int rc = 1;
assert(dp);
static int test_stdin(struct fdisk_test *ts, int argc, char *argv[])
{
- char buf[BUFSIZ];
+ char buf[BUFSIZ] = { '\0' };
struct fdisk_script *dp;
struct fdisk_context *cxt;
int rc = 0;