projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9ec700
)
Remove a redundant test on mg->mg_ptr. (It had to be non-NULL to get
author
Nicholas Clark
<nick@ccl4.org>
Sun, 19 Mar 2006 19:26:05 +0000
(19:26 +0000)
committer
Nicholas Clark
<nick@ccl4.org>
Sun, 19 Mar 2006 19:26:05 +0000
(19:26 +0000)
into this block).
p4raw-id: //depot/perl@27543
sv.c
patch
|
blob
|
history
diff --git
a/sv.c
b/sv.c
index 78e0d245e4b5c62c14bbb60635db70eee8df31ca..6eaaae85f963b2798a19887956ee81fac9fb82b9 100644
(file)
--- a/
sv.c
+++ b/
sv.c
@@
-4576,7
+4576,7
@@
Perl_sv_unmagic(pTHX_ SV *sv, int type)
Safefree(mg->mg_ptr);
else if (mg->mg_len == HEf_SVKEY)
SvREFCNT_dec((SV*)mg->mg_ptr);
- else if (mg->mg_type == PERL_MAGIC_utf8
&& mg->mg_ptr
)
+ else if (mg->mg_type == PERL_MAGIC_utf8)
Safefree(mg->mg_ptr);
}
if (mg->mg_flags & MGf_REFCOUNTED)