[gs-cvs] rev 9544 - trunk/gs/psi
alexcher at ghostscript.com
alexcher at ghostscript.com
Wed Mar 11 05:51:21 PDT 2009
Author: alexcher
Date: 2009-03-11 05:51:21 -0700 (Wed, 11 Mar 2009)
New Revision: 9544
Modified:
trunk/gs/psi/zupath.c
Log:
Propagate error code from gs_path_enum_next() upstream in operator
.getpath . Fix a Coverity warning.
DIFFERENCES:
None
Modified: trunk/gs/psi/zupath.c
===================================================================
--- trunk/gs/psi/zupath.c 2009-03-11 05:59:42 UTC (rev 9543)
+++ trunk/gs/psi/zupath.c 2009-03-11 12:51:21 UTC (rev 9544)
@@ -652,15 +652,14 @@
k = 0;
ref_assign(&leaf_ref[j], operators[pe]);
pe = gs_path_enum_next(&penum, pts);
- if (pe == 0)
- goto out;
+ if (pe <= 0)
+ return pe;
if (pe >= 5)
return_error(e_unregistered);
}
}
}
}
- out:
return 0;
}
More information about the gs-cvs
mailing list