In parse_bool_with_len, avoid crash when no result pointer is passed. Probably
an unlikely call mode, but better be safe.
This commit is contained in:
parent
8cd3755267
commit
e6e1ff7d04
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user