Hi, Ian,

Yet another trivial patch.

Cheers,
Jeff

Signed-off-by: Jeff Moyer <jmo...@redhat.com>

diff --git a/lib/master.c b/lib/master.c
index e43f835..8455f40 100644
--- a/lib/master.c
+++ b/lib/master.c
@@ -152,7 +152,7 @@ master_add_map_source(struct master_mapent *entry,
 {
        struct map_source *source;
        char *ntype, *nformat;
-       const char **tmpargv, *name = NULL;
+       const char **tmpargv;
 
        source = malloc(sizeof(struct map_source));
        if (!source)
@@ -188,10 +188,6 @@ master_add_map_source(struct master_mapent *entry,
        source->argc = argc;
        source->argv = tmpargv;
 
-       /* Can be NULL for "hosts" map */
-       if (argv)
-               name = argv[0];
-
        master_source_writelock(entry);
 
        if (!entry->maps)

_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to