commit-hurd
[Top][All Lists]
Advanced

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

[hurd] 28/98: utils: fix dead initialization


From: Samuel Thibault
Subject: [hurd] 28/98: utils: fix dead initialization
Date: Tue, 14 Jan 2014 01:59:59 +0000

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

sthibault pushed a commit to branch upstream
in repository hurd.

commit 32e60534c7e2b6093de74bd75d37cb117f1d3a5c
Author: Justus Winter <address@hidden>
Date:   Wed Nov 20 11:22:34 2013 +0100

    utils: fix dead initialization
    
    Found using the Clang Static Analyzer.
    
    * utils/frobauth.c (posix_parse_opt): Fix dead initialization.
    (no_ugids_parse_opt): Likewise.
---
 utils/frobauth.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/utils/frobauth.c b/utils/frobauth.c
index ccb7c3b..44690d8 100644
--- a/utils/frobauth.c
+++ b/utils/frobauth.c
@@ -209,7 +209,7 @@ ea_parse_opt (int key, char *arg, struct argp_state *state)
 static error_t
 posix_parse_opt (int key, char *arg, struct argp_state *state)
 {
-  struct frobauth_argp_state *fs = state->hook;
+  struct frobauth_argp_state *fs;
 
   switch (key)
     {
@@ -233,7 +233,7 @@ posix_parse_opt (int key, char *arg, struct argp_state 
*state)
 static error_t
 no_ugids_parse_opt (int key, char *arg, struct argp_state *state)
 {
-  struct frobauth_argp_state *fs = state->hook;
+  struct frobauth_argp_state *fs;
 
   switch (key)
     {

-- 
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]