bug-hurd
[Top][All Lists]
Advanced

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

[PATCH 02/12] utils: fix dead initialization


From: Justus Winter
Subject: [PATCH 02/12] utils: fix dead initialization
Date: Wed, 20 Nov 2013 14:37:55 +0100

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)
     {
-- 
1.7.10.4




reply via email to

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