[Asterisk-code-review] cli.c: Fix compiler error. (asterisk[master])

Benjamin Keith Ford asteriskteam at digium.com
Mon Jun 8 14:35:16 CDT 2020


Benjamin Keith Ford has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/14508 )


Change subject: cli.c: Fix compiler error.
......................................................................

cli.c: Fix compiler error.

Added default variable value to fix a compiler error.

Change-Id: I7b592adbb1274dc5464dea1c5e5de0685c928553
---
M main/cli.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/08/14508/1

diff --git a/main/cli.c b/main/cli.c
index b47b26c..3cb42f2 100644
--- a/main/cli.c
+++ b/main/cli.c
@@ -407,7 +407,7 @@
 {
 	char was_buf[30];
 	const char *was;
-	const char *what;
+	const char *what = "";
 
 	switch(handler) {
 	case DEBUG_HANDLER:

-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/14508
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: I7b592adbb1274dc5464dea1c5e5de0685c928553
Gerrit-Change-Number: 14508
Gerrit-PatchSet: 1
Gerrit-Owner: Benjamin Keith Ford <bford at digium.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200608/e5526523/attachment-0001.html>


More information about the asterisk-code-review mailing list