diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-08-23 00:01:06 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-08-23 00:01:06 +0200 |
commit | cb372e4d5ae9db30aef20150f1242392459ed808 (patch) | |
tree | 0111dcc9449e4b40c3f02298cef189205e1f9333 /storeio | |
parent | 6d3b4cea78b22a6562eef4256cfcc40a8d372194 (diff) | |
download | hurd-cb372e4d5ae9db30aef20150f1242392459ed808.tar.gz hurd-cb372e4d5ae9db30aef20150f1242392459ed808.tar.bz2 hurd-cb372e4d5ae9db30aef20150f1242392459ed808.zip |
storeio: Fix uninitialized err variable
Diffstat (limited to 'storeio')
-rw-r--r-- | storeio/storeio.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/storeio/storeio.c b/storeio/storeio.c index 5b8db0d3..fb9a0041 100644 --- a/storeio/storeio.c +++ b/storeio/storeio.c @@ -153,10 +153,9 @@ main (int argc, char *argv[]) if (debug) { - if (debug_fname) - err = trivfs_startup_debug (debug_fname, 0, 0, 0, 0, &storeio_fsys); - else - error (3, err, "missing translated node"); + if (!debug_fname) + error (3, EINVAL, "missing translated node"); + err = trivfs_startup_debug (debug_fname, 0, 0, 0, 0, &storeio_fsys); if (err) error (3, err, "trivfs_startup_debug failed"); } |