From da2eaf3bf78ad1e7efc900381311933eac71df2c Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Sun, 20 Nov 2022 00:00:40 -0500 Subject: [PATCH] misc.c open_pathfmt fix yellow Change-Id: Id844825726654a3a5b19a1672cb66af9aadaed32 --- apps/misc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/misc.c b/apps/misc.c index 66d1c272ae..e2913d53b3 100644 --- a/apps/misc.c +++ b/apps/misc.c @@ -1423,6 +1423,7 @@ int open_pathfmt(int oflag, const char *pathfmt, ...) { static char buf[MAX_PATH]; va_list ap; + va_start(ap, pathfmt); vsnprintf(buf, sizeof(buf), pathfmt, ap); va_end(ap); return open(buf, oflag, 0666);