Commit 0f199043 authored by Thomas G. Lockhart's avatar Thomas G. Lockhart

Check for null pointer returned from get_opname().

parent 402b47cf
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/nodes/print.c,v 1.16 1998/07/15 14:54:33 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/nodes/print.c,v 1.17 1998/08/16 05:35:35 thomas Exp $
* *
* HISTORY * HISTORY
* AUTHOR DATE MAJOR EVENT * AUTHOR DATE MAJOR EVENT
...@@ -201,7 +201,7 @@ print_expr(Node *expr, List *rtable) ...@@ -201,7 +201,7 @@ print_expr(Node *expr, List *rtable)
print_expr((Node *) get_leftop(e), rtable); print_expr((Node *) get_leftop(e), rtable);
opname = get_opname(((Oper *) e->oper)->opno); opname = get_opname(((Oper *) e->oper)->opno);
printf(" %s ", opname); printf(" %s ", ((opname != NULL)? opname: "(invalid operator)"));
print_expr((Node *) get_rightop(e), rtable); print_expr((Node *) get_rightop(e), rtable);
} }
else else
......
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