Bug 691929

Summary: in pdfapp_onkey load page should start out as 1
Product: MuPDF Reporter: Daniel Dutkiewicz <dsdutkiewicz>
Component: appsAssignee: Tor Andersson <tor.andersson>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P4    
Version: unspecified   
Hardware: PC   
OS: Linux   
Customer: Word Size: ---

Description Daniel Dutkiewicz 2011-02-03 06:24:28 UTC
diff --git a/apps/pdfapp.c b/apps/pdfapp.c
index 0732ed3..572f1c5 100644
--- a/apps/pdfapp.c
+++ b/apps/pdfapp.c
@@ -580,6 +580,8 @@ void pdfapp_onkey(pdfapp_t *app, int c)
 	int oldpage = app->pageno;
 	enum panning panto = PAN_TO_TOP;
 	int loadpage;
+	
+	loadpage = 1;
 
 	if (app->isediting)
 	{

--
otherwise it is one of the few uninitialized variables, and the default of 1 made sense to me when i read the change that added the variable
Comment 1 Tor Andersson 2011-02-03 09:16:41 UTC

*** This bug has been marked as a duplicate of bug 691890 ***