diff --git a/plugins/sudoers/sudoreplay.c b/plugins/sudoers/sudoreplay.c index d7b152dd2..bf416a601 100644 --- a/plugins/sudoers/sudoreplay.c +++ b/plugins/sudoers/sudoreplay.c @@ -311,6 +311,7 @@ main(int argc, char *argv[]) if (lfile == NULL) error(1, "unable to open %s", path); cp = NULL; + len = 0; getline(&cp, &len, lfile); /* log */ getline(&cp, &len, lfile); /* cwd */ getline(&cp, &len, lfile); /* command */