summaryrefslogtreecommitdiff
path: root/pack.c
diff options
context:
space:
mode:
Diffstat (limited to 'pack.c')
-rw-r--r--pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pack.c b/pack.c
index baff504bea..a435e130b2 100644
--- a/pack.c
+++ b/pack.c
@@ -1377,9 +1377,9 @@ pack_unpack(str, fmt)
#endif
StringValue(str);
+ StringValue(fmt);
s = RSTRING(str)->ptr;
send = s + RSTRING(str)->len;
- StringValue(fmt);
p = RSTRING(fmt)->ptr;
pend = p + RSTRING(fmt)->len;