]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Fix an uninitialized variable reference
authorTed Lemon <source@isc.org>
Wed, 29 Nov 2000 13:38:36 +0000 (13:38 +0000)
committerTed Lemon <source@isc.org>
Wed, 29 Nov 2000 13:38:36 +0000 (13:38 +0000)
common/options.c

index cfbc5e82ae463fdad5bfe8ad04bc663dd3fedd58..d21e17d9e0a9ec24dc92ba01b2d24a4a5271e8de 100644 (file)
@@ -43,7 +43,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: options.c,v 1.70 2000/11/28 23:10:28 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: options.c,v 1.71 2000/11/29 13:38:36 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #define DHCP_OPTION_DATA
@@ -234,7 +234,6 @@ int parse_encapsulated_suboptions (struct option_state *options,
                                   const char *uname)
 {
        int i;
-       char *s;
        struct universe *universe = find_option_universe (eopt, uname);
 
        /* If we didn't find the universe, we can't do anything with it
@@ -251,7 +250,7 @@ int parse_encapsulated_suboptions (struct option_state *options,
        i = (*universe -> decode) (options, buffer, len, universe);
 
        /* If there is stuff before the suboptions, we have to keep it. */
-       if (s != eopt -> format)
+       if (eopt -> format [0] != 'E')
                return 0;
        /* Otherwise, return the status of the decode function. */
        return i;