|
10 | 10 | * Written by Peter Eisentraut <peter_e@gmx.net>.
|
11 | 11 | *
|
12 | 12 | * IDENTIFICATION
|
13 |
| - * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.339 2006/08/1302:22:24 momjian Exp $ |
| 13 | + * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.340 2006/08/1315:37:02 momjian Exp $ |
14 | 14 | *
|
15 | 15 | *--------------------------------------------------------------------
|
16 | 16 | */
|
@@ -4082,9 +4082,9 @@ verify_config_option(const char *name, const char *value,
|
4082 | 4082 | if (parse_value(elevel,record,value,&source, false,NULL))
|
4083 | 4083 | {
|
4084 | 4084 | /*
|
4085 |
| - * Mark recordlike presented in the config file. Be carefull if |
| 4085 | + * Mark recordas present in the config file. Be carefull if |
4086 | 4086 | * you use this function for another purpose than config file
|
4087 |
| - * verification. It causes confusionconfigfile parser. |
| 4087 | + * verification. It causes confusionin the config file parser. |
4088 | 4088 | */
|
4089 | 4089 | record->status |=GUC_IN_CONFFILE;
|
4090 | 4090 |
|
@@ -5512,7 +5512,10 @@ is_newvalue_equal(struct config_generic *record, const char *newvalue)
|
5512 | 5512 | {
|
5513 | 5513 | structconfig_string*conf= (structconfig_string*)record;
|
5514 | 5514 |
|
5515 |
| -returnstrcmp(*conf->variable,newvalue)==0; |
| 5515 | +if (!*conf->variable)/* custom variable with no value yet */ |
| 5516 | +return false; |
| 5517 | +else |
| 5518 | +returnstrcmp(*conf->variable,newvalue)==0; |
5516 | 5519 | }
|
5517 | 5520 | }
|
5518 | 5521 |
|
|