Commit e6e1ff7d authored by Peter Eisentraut's avatar Peter Eisentraut

In parse_bool_with_len, avoid crash when no result pointer is passed. Probably

an unlikely call mode, but better be safe.
parent 8cd37552
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/adt/bool.c,v 1.46 2009/03/09 14:34:34 petere Exp $ * $PostgreSQL: pgsql/src/backend/utils/adt/bool.c,v 1.47 2009/03/09 16:49:12 petere Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -109,7 +109,8 @@ parse_bool_with_len(const char *value, size_t len, bool *result) ...@@ -109,7 +109,8 @@ parse_bool_with_len(const char *value, size_t len, bool *result)
break; break;
} }
*result = false; /* suppress compiler warning */ if (result)
*result = false; /* suppress compiler warning */
return false; return false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment