Bug 691929 - in pdfapp_onkey load page should start out as 1
Summary: in pdfapp_onkey load page should start out as 1
Status: RESOLVED DUPLICATE of bug 691890
Alias: None
Product: MuPDF
Classification: Unclassified
Component: apps (show other bugs)
Version: unspecified
Hardware: PC Linux
: P4 normal
Assignee: Tor Andersson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-03 06:24 UTC by Daniel Dutkiewicz
Modified: 2011-02-03 09:16 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***