[gs-commits] mupdf 1.16.1.35 Remove double null check for x/y coordina

[email protected] (Sebastian Rasmussen)
Newsgroups gmane.comp.printing.ghostscript.cvs
Message-ID <[email protected]>
commit c22918afdaf27de92519354dcb403c80c063ca85
Author: Sebastian Rasmussen <[email protected]>
Date:   Thu Sep 5 23:07:13 2019 +0200

    Remove double null check for x/y coordinates in link url.

diff --git a/source/pdf/pdf-link.c b/source/pdf/pdf-link.c
index 37444b4..347649a 100644
--- a/source/pdf/pdf-link.c
+++ b/source/pdf/pdf-link.c
@@ -339,8 +339,8 @@ pdf_resolve_link(fz_context *ctx, pdf_document *doc, const char *uri, float *xp,
 			const char *y = strrchr(uri, ',');
 			if (x && y)
 			{
-				if (xp) *xp = x ? fz_atoi(x + 1) : 0;
-				if (yp) *yp = y ? fz_atoi(y + 1) : 0;
+				if (xp) *xp = fz_atoi(x + 1);
+				if (yp) *yp = fz_atoi(y + 1);
 			}
 		}
 		return page;

http://git.ghostscript.com/?p=mupdf.git;a=commit;h=c22918afdaf27de92519354dcb403c80c063ca85

--
MuPDF library
Artifex Software, Inc.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.