summaryrefslogtreecommitdiffstats
path: root/pack.c
diff options
context:
space:
mode:
Diffstat (limited to 'pack.c')
-rw-r--r--pack.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/pack.c b/pack.c
index 00237659d..77ad3653b 100644
--- a/pack.c
+++ b/pack.c
@@ -364,8 +364,7 @@ pack_pack(ary, fmt)
if (ISSPACE(type)) continue;
if (type == '#') {
- while (p < pend) {
- if (*p == '\n') continue;
+ while ((p < pend) && (*p != '\n')) {
p++;
}
break;
@@ -1084,8 +1083,7 @@ pack_unpack(str, fmt)
if (ISSPACE(type)) continue;
if (type == '#') {
- while (p < pend) {
- if (*p == '\n') continue;
+ while ((p < pend) && (*p != '\n')) {
p++;
}
break;