Skip to content

Commit 7536ed5

Browse files
committed
In Perl_sv_setsv_cow(), dstr can be NULL.
1 parent b117205 commit 7536ed5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

embed.fnc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1866,7 +1866,7 @@ Apn |int |my_socketpair |int family|int type|int protocol|int fd[2]
18661866
Ap |int |my_dirfd |NULLOK DIR* dir
18671867
#ifdef PERL_OLD_COPY_ON_WRITE
18681868
: Used in pp_hot.c and regexec.c
1869-
pMXE |SV* |sv_setsv_cow |NN SV* dstr|NN SV* sstr
1869+
pMXE |SV* |sv_setsv_cow |NULLOK SV* dstr|NN SV* sstr
18701870
#endif
18711871

18721872
Aop |const char *|PerlIO_context_layers|NULLOK const char *mode

proto.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5968,10 +5968,9 @@ PERL_CALLCONV int Perl_my_socketpair(int family, int type, int protocol, int fd[
59685968
PERL_CALLCONV int Perl_my_dirfd(pTHX_ DIR* dir);
59695969
#ifdef PERL_OLD_COPY_ON_WRITE
59705970
PERL_CALLCONV SV* Perl_sv_setsv_cow(pTHX_ SV* dstr, SV* sstr)
5971-
__attribute__nonnull__(pTHX_1)
59725971
__attribute__nonnull__(pTHX_2);
59735972
#define PERL_ARGS_ASSERT_SV_SETSV_COW \
5974-
assert(dstr); assert(sstr)
5973+
assert(sstr)
59755974

59765975
#endif
59775976

0 commit comments

Comments
 (0)