projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
5b6f5c6
)
Clear num_opts early
author
Jens Axboe
<jens.axboe@oracle.com>
Wed, 11 Jun 2008 09:47:56 +0000
(11:47 +0200)
committer
Jens Axboe
<jens.axboe@oracle.com>
Wed, 11 Jun 2008 09:47:56 +0000
(11:47 +0200)
If we error out, it could be garbage.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
init.c
patch
|
blob
|
blame
|
history
diff --git
a/init.c
b/init.c
index 91699777e239ee0a04c99f8fdd5fdd52a0a1f5fa..652b2e2775b41dc49dda4553999b19a1cc3f928b 100644
(file)
--- a/
init.c
+++ b/
init.c
@@
-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 {