secchan: Fix segfault at startup due to uninitialized br_name member.
authorBen Pfaff <blp@nicira.com>
Wed, 4 Mar 2009 22:52:18 +0000 (14:52 -0800)
committerBen Pfaff <blp@nicira.com>
Wed, 4 Mar 2009 22:52:18 +0000 (14:52 -0800)
secchan/main.c

index 18a591fb7086b31928156140bd9837cf8c78a3d8..197055af7c3c649576c66953da2959f8a434c2a0 100644 (file)
@@ -199,6 +199,7 @@ parse_options(int argc, char *argv[], struct ofsettings *s)
     char *short_options = long_options_to_short_options(long_options);
 
     /* Set defaults that we can figure out before parsing options. */
+    s->br_name = NULL;
     s->datapath_id = 0;
     s->mfr_desc = "Nicira Networks, Inc.";
     s->hw_desc = "Reference Implementation";