summaryrefslogtreecommitdiffabout
authorSergey Poznyakoff <gray@gnu.org>2016-07-28 11:05:23 (GMT)
committer Sergey Poznyakoff <gray@gnu.org>2016-07-28 11:05:23 (GMT)
commit4b562511f67041a99b6b56204b469afac659f394 (patch) (side-by-side diff)
tree51d3f159a0e9617912fd4f9f01afb362e74f87bc
parentcda4f4b9026f80af50289a56706877dfa6ef41e5 (diff)
downloaddico-4b562511f67041a99b6b56204b469afac659f394.tar.gz
dico-4b562511f67041a99b6b56204b469afac659f394.tar.bz2
Bugfix
* modules/gcide/idxgcide.l (main): Initialize ipg_header
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--modules/gcide/idxgcide.l3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/gcide/idxgcide.l b/modules/gcide/idxgcide.l
index f787264..b48b11c 100644
--- a/modules/gcide/idxgcide.l
+++ b/modules/gcide/idxgcide.l
@@ -1,6 +1,6 @@
%top {
/* This file is part of GNU Dico.
- Copyright (C) 2012 Sergey Poznyakoff
+ Copyright (C) 2012, 2016 Sergey Poznyakoff
GNU Dico is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -294,6 +294,7 @@ main(int argc, char **argv)
dico_log(L_ERR, 0, _("not enough memory"));
exit(EX_UNAVAILABLE);
}
+ idx_page->ipg_header.hdr.phdr_numentries = 0;
idx_page->ipg_header.hdr.phdr_text_offset = idx_header.ihdr_pagesize / 2;
idx_header.ihdr_maxpageref = idx_header.ihdr_pagesize / 2 /

Return to:

Send suggestions and report system problems to the System administrator.