X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=init.c;h=f00ced32100d0886307ea6e3a885037af48865d3;hb=8cdabc1df71ec546d47ba4eb1190b8c7b6e62f9a;hp=b192e587ac69807f6a829a5efa7fe28a22d95bd0;hpb=3b8b7135602a4d3a7132fee10da9c1203ab643ad;p=fio.git diff --git a/init.c b/init.c index b192e587..f00ced32 100644 --- a/init.c +++ b/init.c @@ -19,7 +19,7 @@ #include "smalloc.h" #include "filehash.h" -static char fio_version_string[] = "fio 1.21"; +static char fio_version_string[] = "fio 1.23"; #define FIO_RANDSEED (0xb1899bedUL) @@ -637,6 +637,7 @@ static int parse_jobs_ini(char *file, int stonewall_flag) alloc_opts = 8; opts = malloc(sizeof(char *) * alloc_opts); + num_opts = 0; stonewall = stonewall_flag; do { @@ -751,6 +752,7 @@ static int parse_jobs_ini(char *file, int stonewall_flag) free(string); free(name); + free(opts); if (f != stdin) fclose(f); return ret; @@ -876,7 +878,7 @@ struct debug_level debug_levels[] = { { .name = "parse", .shift = FD_PARSE }, { .name = "diskutil", .shift = FD_DISKUTIL }, { .name = "job", .shift = FD_JOB }, - { }, + { .name = NULL, }, }; static int set_debug(const char *string)