aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2019-03-04 16:07:24 -0600
committertlatorre <tlatorre@uchicago.edu>2019-03-04 16:07:24 -0600
commit1d8fe6519232de705951d34015f97f910b7e82fb (patch)
tree455541474a2ac3f489c3d846986640f9c101e89a /src
parent0626bb6cbbfee0e8999b0c17ae1d4e1c814fbead (diff)
downloadsddm-1d8fe6519232de705951d34015f97f910b7e82fb.tar.gz
sddm-1d8fe6519232de705951d34015f97f910b7e82fb.tar.bz2
sddm-1d8fe6519232de705951d34015f97f910b7e82fb.zip
fix a bug in zebra_read_next_logical_record() when the size is zero
Diffstat (limited to 'src')
-rw-r--r--src/zebra.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/zebra.c b/src/zebra.c
index 24973d7..42b507c 100644
--- a/src/zebra.c
+++ b/src/zebra.c
@@ -229,7 +229,10 @@ int zebra_read_next_logical_record(zebraFile *z)
* length and the LR type; thus a padding record with NWLR=1 occupies
* two words. To pad exactly one word, NWLR=0 should be stored, in this
* case the LR type 5 is implied without being present in the data." */
- if (size == 0) continue;
+ if (size == 0) {
+ z->lr_size = 4;
+ continue;
+ }
switch (get_bytes(z,offset+1)) {
case 1: