summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2014-11-21 02:56:11 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2014-11-21 02:56:11 +0100
commitf981d5bdba78ef72dbbf0d22c146890a305d487c (patch)
tree4123e809c150969dedf82b1192c44833ed75cfa7
parent9a56d8f0803d40dacb92eb366b534bbbd5438096 (diff)
Fix compiler warning
* libnetfs/dir-lookup.c (netfs_S_dir_lookup): Initialize register_translator to 0, otherwise it may be used uninitialized in case of non-ENOENT errors.
-rw-r--r--libnetfs/dir-lookup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libnetfs/dir-lookup.c b/libnetfs/dir-lookup.c
index 2d3da947..77cbbbd6 100644
--- a/libnetfs/dir-lookup.c
+++ b/libnetfs/dir-lookup.c
@@ -260,7 +260,7 @@ netfs_S_dir_lookup (struct protid *diruser,
}
}
- boolean_t register_translator;
+ boolean_t register_translator = 0;
if (! error)
{
dirport = ports_get_send_right (newpi);