summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2016-11-18 03:31:50 +0100
committerGravatar Nikias Bassen2016-11-18 03:31:50 +0100
commit4971dc8bd451ca363710b6e03903ce999cd6deb7 (patch)
tree150c27c48a2be497211e2f965cf772d3431cb2dd
parent582c59bf7dcf37270c2fd7e99b4982ebc9bcbc74 (diff)
downloadlibplist-4971dc8bd451ca363710b6e03903ce999cd6deb7.tar.gz
libplist-4971dc8bd451ca363710b6e03903ce999cd6deb7.tar.bz2
bplist: Remove misleading/redundant `else` from BPLIST_DATE case in parse_bin_node
-rw-r--r--src/bplist.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/bplist.c b/src/bplist.c
index 124b024..0122e08 100644
--- a/src/bplist.c
+++ b/src/bplist.c
@@ -580,10 +580,9 @@ static plist_t parse_bin_node(struct bplist_data *bplist, const char** object)
case BPLIST_DATE:
if (3 != size)
return NULL;
- else
- if (*object - bplist->data + (uint64_t)(1 << size) >= bplist->size)
- return NULL;
- return parse_date_node(object, size);
+ if (*object - bplist->data + (uint64_t)(1 << size) >= bplist->size)
+ return NULL;
+ return parse_date_node(object, size);
case BPLIST_DATA:
if (BPLIST_FILL == size) {