Skip to content

Commit 2e26559

Browse files
committed
Fix uninitialized value watchpoint_hit
Closes GH-15317.
1 parent 9aeb676 commit 2e26559

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sapi/phpdbg/phpdbg_watch.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1479,6 +1479,7 @@ void phpdbg_setup_watchpoints(void) {
14791479
zend_hash_init(PHPDBG_G(watchlist_mem_backup), phpdbg_pagesize / (sizeof(Bucket) + sizeof(uint32_t)), NULL, NULL, 1);
14801480

14811481
PHPDBG_G(watch_tmp) = NULL;
1482+
PHPDBG_G(watchpoint_hit) = false;
14821483

14831484
#ifdef HAVE_USERFAULTFD_WRITEFAULT
14841485
PHPDBG_G(watch_userfaultfd) = syscall(SYS_userfaultfd, O_CLOEXEC);

0 commit comments

Comments
 (0)