Skip to content

Commit bd5226c

Browse files
committed
minor fix
1 parent e643b81 commit bd5226c

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/utils/configuration.c

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -252,12 +252,11 @@ assign_option(ConfigOption *opt, const char *optarg, OptionSource src)
252252
free(*(char **) opt->var);
253253

254254
/* 'none' and 'off' are always disable the string parameter */
255-
if ((pg_strcasecmp(optarg, "none") == 0) ||
256-
(pg_strcasecmp(optarg, "off") == 0))
257-
{
258-
opt->var = NULL;
259-
return;
260-
}
255+
//if (optarg && (pg_strcasecmp(optarg, "none") == 0))
256+
//{
257+
// *(char **) opt->var = "none";
258+
// return;
259+
//}
261260

262261
*(char **) opt->var = pgut_strdup(optarg);
263262
if (strcmp(optarg,"") != 0)
@@ -666,9 +665,9 @@ option_get_value(ConfigOption *opt)
666665
if (*((char **) opt->var) == NULL)
667666
return NULL;
668667
/* 'none' and 'off' are always disable the string parameter */
669-
if ((pg_strcasecmp(*((char **) opt->var), "none") == 0) ||
670-
(pg_strcasecmp(*((char **) opt->var), "off") == 0))
671-
return NULL;
668+
//if ((pg_strcasecmp(*((char **) opt->var), "none") == 0) ||
669+
// (pg_strcasecmp(*((char **) opt->var), "off") == 0))
670+
// return NULL;
672671
return pstrdup(*((char **) opt->var));
673672
case 't':
674673
{

0 commit comments

Comments
 (0)