← Commit list

f4cee7a17

Denis Vlasenko
Denis Vlasenko
2007-07-25
FAILED Duration: 13s

Subject

getopt32: fix getopt32 breakage (forgot to memset(0) it) -- thanks rockeychu

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

libbb/getopt32.c+1 -0
@@ -355,6 +355,7 @@ getopt32(int argc, char **argv, const char *applet_opts, ...)
}
/* count == no. of longopts + 1 */
long_options = alloca(count * sizeof(*long_options));
+ memset(long_options, 0, count * sizeof(*long_options));
i = 0;
optstr = applet_long_options;
while (--count) {