From 32e60534c7e2b6093de74bd75d37cb117f1d3a5c Mon Sep 17 00:00:00 2001
From: Justus Winter <4winter@informatik.uni-hamburg.de>
Date: Wed, 20 Nov 2013 11:22:34 +0100
Subject: 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(-)

(limited to 'utils/frobauth.c')

diff --git a/utils/frobauth.c b/utils/frobauth.c
index ccb7c3bb..44690d82 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)
     {
-- 
cgit v1.2.3