Skip to content
Snippets Groups Projects
Commit e6e1ff7d authored by Peter Eisentraut's avatar Peter Eisentraut
Browse files

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

an unlikely call mode, but better be safe.
parent 8cd37552
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@
*
*
* 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)
break;
}
*result = false; /* suppress compiler warning */
if (result)
*result = false; /* suppress compiler warning */
return false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment