From a37dda7297ac4d3c099d279551ae46cd1e8c5e27 Mon Sep 17 00:00:00 2001 From: Nathan Straz Date: Tue, 23 Sep 2008 16:09:59 -0400 Subject: There is a possibility that nodesetval is NULL even if the type is set. --- gxpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gxpd.c') diff --git a/gxpd.c b/gxpd.c index 6c569b4..70cd2bf 100644 --- a/gxpd.c +++ b/gxpd.c @@ -100,7 +100,7 @@ gxpd(char *fn, const char *xpath_query, const char *prefix) xpath_query, fn); exit(1); } - if (obj->type != XPATH_NODESET) { + if (obj->type != XPATH_NODESET || obj->nodesetval == NULL) { fprintf(stderr, "XPath expression '%s' did not match a nodeset.\n", xpath_query); exit(1); } -- cgit