summaryrefslogtreecommitdiff
path: root/storeio
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-08-23 00:01:06 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-08-23 00:01:06 +0200
commitcb372e4d5ae9db30aef20150f1242392459ed808 (patch)
tree0111dcc9449e4b40c3f02298cef189205e1f9333 /storeio
parent6d3b4cea78b22a6562eef4256cfcc40a8d372194 (diff)
storeio: Fix uninitialized err variable
Diffstat (limited to 'storeio')
-rw-r--r--storeio/storeio.c7
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");
}