Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

genconfig: fix bug with "(null)" in config_need.c

  • Loading branch information...
commit a98d51737a9568fa186a53a959ce2f00d95e7f57 1 parent a651f79
ec429 authored
Showing with 6 additions and 5 deletions.
  1. +0 −2  config_need.c
  2. +6 −3 genconfig.c
View
2  config_need.c
@@ -1,6 +1,4 @@
/* Generated by genconfig */
- if(strcmp(cmd, "(null)")==0) need=false;
- if(strcmp(cmd, "(null)")==0) need=false;
if(strcmp(cmd, "mcc")==0) need=false;
if(strcmp(cmd, "no-mcc")==0) need=false;
if(strcmp(cmd, "fred")==0) need=false;
View
9 genconfig.c
@@ -545,9 +545,12 @@ Generated by <small>genconfig</small></h5>\n\
}
break;
case 6:
- printf("\t\t\tif(strcmp(cmd, \"%s\")==0) need=false;\n", ents[i].rc_name);
- if((ents[i].set_type==BOOLEAN)||(ents[i].set_type==LEVEL))
- printf("\t\t\tif(strcmp(cmd, \"no-%s\")==0) need=false;\n", ents[i].rc_name);
+ if(ents[i].rc_name)
+ {
+ printf("\t\t\tif(strcmp(cmd, \"%s\")==0) need=false;\n", ents[i].rc_name);
+ if((ents[i].set_type==BOOLEAN)||(ents[i].set_type==LEVEL))
+ printf("\t\t\tif(strcmp(cmd, \"no-%s\")==0) need=false;\n", ents[i].rc_name);
+ }
break;
case 7:
if(ents[i].cmdline_name)
Please sign in to comment.
Something went wrong with that request. Please try again.