index 2da1cac3e215e7ff527ccbdb986a5fb6d3008332..f3da2ddd080b9524bc545ed411f1a1e7418a460a 100644 (file)
const char *query = (const char *) arg;
int syntaxerrposition;
+ if (query == NULL) /* in case arg wasn't set yet */
+ return;
+
/*
* If there is a syntax error position, convert to internal syntax error;
* otherwise treat the query as an item of context stack