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