8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21df5c3 commit ab95102Copy full SHA for ab95102
pg_variables.c
@@ -801,7 +801,7 @@ variable_exists(PG_FUNCTION_ARGS)
801
text *package_name;
802
text *var_name;
803
Package *package;
804
- Variable *variable;
+ Variable *variable = NULL;
805
char key[NAMEDATALEN];
806
bool found = false;
807
@@ -831,7 +831,7 @@ variable_exists(PG_FUNCTION_ARGS)
831
PG_FREE_IF_COPY(package_name, 0);
832
PG_FREE_IF_COPY(var_name, 1);
833
834
- PG_RETURN_BOOL(found ? GetActualState(variable)->is_valid : found);
+ PG_RETURN_BOOL(variable ? GetActualState(variable)->is_valid : false);
835
}
836
837
/*
0 commit comments