summaryrefslogtreecommitdiff
path: root/pp_pack.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-01-22 00:39:41 +0000
committerNicholas Clark <nick@ccl4.org>2005-01-22 00:39:41 +0000
commit5512a2f970bb4736c5f97b41c721c79012f86f6b (patch)
tree9f605b67623513e8e6ecad69b91f6de023d22beb /pp_pack.c
parent89ebb4a3f2a55825eeed13aaf58db5c73d2140ef (diff)
downloadperl-5512a2f970bb4736c5f97b41c721c79012f86f6b.tar.gz
Remove now-unnecessary check. (It's done earlier)
p4raw-id: //depot/perl@23858
Diffstat (limited to 'pp_pack.c')
-rw-r--r--pp_pack.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/pp_pack.c b/pp_pack.c
index 2e830f40f3..8bfdd5b075 100644
--- a/pp_pack.c
+++ b/pp_pack.c
@@ -1411,13 +1411,10 @@ S_unpack_rec(pTHX_ register tempsym_t* symptr, register char *s, char *strbeg, c
break;
case 'p':
while (len-- > 0) {
- if (sizeof(char*) > strend - s)
- break;
- else {
- Copy(s, &aptr, 1, char*);
- DO_BO_UNPACK_P(aptr);
- s += sizeof(char*);
- }
+ assert (sizeof(char*) <= strend - s);
+ Copy(s, &aptr, 1, char*);
+ DO_BO_UNPACK_P(aptr);
+ s += sizeof(char*);
/* newSVpv generates undef if aptr is NULL */
PUSHs(sv_2mortal(newSVpv(aptr, 0)));
}