commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 10/64: Fix compiler warning


From: Samuel Thibault
Subject: [hurd] 10/64: Fix compiler warning
Date: Wed, 10 Dec 2014 15:17:03 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit f981d5bdba78ef72dbbf0d22c146890a305d487c
Author: Samuel Thibault <address@hidden>
Date:   Fri Nov 21 02:56:11 2014 +0100

    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.
---
 libnetfs/dir-lookup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libnetfs/dir-lookup.c b/libnetfs/dir-lookup.c
index 2d3da94..77cbbbd 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);

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]