summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg_out.c
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-04-12 11:20:29 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-04-12 11:46:03 +0200
commitc09b63595ef7edcaae6638932dceae531c26c3cf (patch)
treede1ca460f46c47475a6a9989e0822f100f19e9f8 /sapi/phpdbg/phpdbg_out.c
parent88bfd2ae98fb163f4b8789b0cb41f7c01eff7c3f (diff)
downloadphp-git-c09b63595ef7edcaae6638932dceae531c26c3cf.tar.gz
Fix potentially uninitialized warnings in phpdbg
Diffstat (limited to 'sapi/phpdbg/phpdbg_out.c')
-rw-r--r--sapi/phpdbg/phpdbg_out.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sapi/phpdbg/phpdbg_out.c b/sapi/phpdbg/phpdbg_out.c
index 95f27b3c6f..88981e5c6f 100644
--- a/sapi/phpdbg/phpdbg_out.c
+++ b/sapi/phpdbg/phpdbg_out.c
@@ -1030,9 +1030,8 @@ static int phpdbg_process_print(int fd, int type, const char *tag, const char *m
} else {
phpdbg_mixed_write(fd, msg, msglen);
}
- return msglen;
}
- break;
+ return msglen;
/* no formatting on logging output */
case P_LOG:
@@ -1046,6 +1045,7 @@ static int phpdbg_process_print(int fd, int type, const char *tag, const char *m
}
}
break;
+ EMPTY_SWITCH_DEFAULT_CASE()
}
if (PHPDBG_G(flags) & PHPDBG_WRITE_XML) {