From aaf8972748e365e30c3b60bfe9f8f1b08351cd42 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 18 Jun 2012 17:20:43 +0000 Subject: (xpush_simple_list_str) preallocate the stack --- URPM.xs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/URPM.xs b/URPM.xs index 5b61c4c..a4a00e8 100644 --- a/URPM.xs +++ b/URPM.xs @@ -471,8 +471,9 @@ xpush_simple_list_str(const Header header, rpmTag tag_name) { return 0; size = rpmtdCount(&list); + EXTEND(SP, size); while ((val = rpmtdNextString(&list))) { - mXPUSHs(newSVpv(val, 0)); + mPUSHs(newSVpv(val, 0)); } rpmtdFreeData(&list); PUTBACK; -- cgit v1.2.1