Skip to content

Commit

Permalink
Initialize char* to NULL to remove compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
badboy committed Jun 20, 2013
1 parent 519c9e1 commit 5ac7ca9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config.c
Expand Up @@ -1332,7 +1332,7 @@ void rewriteConfigOctalOption(struct rewriteConfigState *state, char *option, in
* specified. See how the function is used for more information. */
void rewriteConfigEnumOption(struct rewriteConfigState *state, char *option, int value, ...) {
va_list ap;
char *enum_name, *matching_name;
char *enum_name, *matching_name = NULL;
int enum_val, def_val, force;
sds line;

Expand All @@ -1357,7 +1357,7 @@ void rewriteConfigEnumOption(struct rewriteConfigState *state, char *option, int
void rewriteConfigSyslogfacilityOption(struct rewriteConfigState *state) {
int value = server.syslog_facility, j;
int force = value != LOG_LOCAL0;
char *name, *option = "syslog-facility";
char *name = NULL, *option = "syslog-facility";
sds line;

for (j = 0; validSyslogFacilities[j].name; j++) {
Expand Down

0 comments on commit 5ac7ca9

Please sign in to comment.