diff options
author | David Mitchell <davem@iabyn.com> | 2014-04-11 21:45:02 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2014-04-11 21:45:02 +0100 |
commit | 0c5ea01913265b717b8615a704acd13ddde5b078 (patch) | |
tree | 0ec421db0c24e10b9e1f6f93fa88b4e12f5141a1 /perlvars.h | |
parent | 7e6b9e3a663e0e2adbb0acd0e0c8e50176b82316 (diff) | |
download | perl-0c5ea01913265b717b8615a704acd13ddde5b078.tar.gz |
initialise PL_watch_pvx
This global var is only used in debugging builds, but with
PERL_GLOBAL_STRUCT_PRIVATE builds, it gives valgrind errors. Just
initialise it to NULL.
I was originally trying to replicate smoke failures of
dist/Thread-Queue/t/07_lock.t under PERL_GLOBAL_STRUCT_PRIVATE, and
valgrind complained.
Diffstat (limited to 'perlvars.h')
-rw-r--r-- | perlvars.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perlvars.h b/perlvars.h index aa724e8084..7bafa40882 100644 --- a/perlvars.h +++ b/perlvars.h @@ -97,7 +97,7 @@ PERLVAR(G, hints_mutex, perl_mutex) /* Mutex for refcounted he refcounting */ #endif #ifdef DEBUGGING -PERLVAR(G, watch_pvx, char *) +PERLVARI(G, watch_pvx, char *, NULL) #endif /* |