diff options
author | William Wilgus <wilgus.william@gmail.com> | 2022-11-20 00:00:40 -0500 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2022-11-20 00:00:40 -0500 |
commit | da2eaf3bf78ad1e7efc900381311933eac71df2c (patch) | |
tree | 1f5a5945ec39bdf3fc56ed08584ddd487c8de32f | |
parent | e7e20fab1b2b90ea80e118959386017ed1d6f703 (diff) | |
download | rockbox-da2eaf3bf7.tar.gz rockbox-da2eaf3bf7.zip |
misc.c open_pathfmt fix yellow
Change-Id: Id844825726654a3a5b19a1672cb66af9aadaed32
-rw-r--r-- | apps/misc.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |