From 188e4913b2bc81b9a3d46db1e299814fea0f4043 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Sun, 25 Feb 2007 12:46:18 +0100 Subject: fix comparison (taken from pkgsrc) --- src/PostscriptDSC.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/PostscriptDSC.cxx b/src/PostscriptDSC.cxx index aa23430..a4beb04 100644 --- a/src/PostscriptDSC.cxx +++ b/src/PostscriptDSC.cxx @@ -127,7 +127,7 @@ PostscriptDSC::parse(int fd) { fprintf(stderr, "Page %d already defined\n", p1); return 1; } - if (p1 > 1 && page_off[p1 - 2] == NULL) { + if (p1 > 1 && page_off[p1 - 2] == 0) { fprintf(stderr, "Page %d not yet defined\n", p1 - 1); return 1; } -- cgit v1.2.3