mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-13 07:03:45 +01:00
Fix warning
This commit is contained in:
parent
488fb4aefb
commit
14aa29201a
@ -1,5 +1,7 @@
|
|||||||
/* See LICENSE file for license and copyright information */
|
/* See LICENSE file for license and copyright information */
|
||||||
|
|
||||||
|
#define _BSD_SOURCE || _XOPEN_SOURCE >= 500
|
||||||
|
|
||||||
#include <regex.h>
|
#include <regex.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -924,9 +926,12 @@ cmd_open(int argc, char** argv)
|
|||||||
|
|
||||||
Zathura.PDF.number_of_pages = poppler_document_get_n_pages(Zathura.PDF.document);
|
Zathura.PDF.number_of_pages = poppler_document_get_n_pages(Zathura.PDF.document);
|
||||||
Zathura.PDF.file = file;
|
Zathura.PDF.file = file;
|
||||||
|
Zathura.State.filename = file;
|
||||||
|
|
||||||
set_page(1);
|
set_page(1);
|
||||||
|
|
||||||
|
update_status();
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user