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

Friendly Automation asteriskteam at digium.com
Wed Jun 10 09:38:47 CDT 2020


Friendly Automation has submitted this change. ( https://gerrit.asterisk.org/c/asterisk/+/14534 )

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(-)

Approvals:
  George Joseph: Looks good to me, approved
  Friendly Automation: Approved for Submit



diff --git a/main/cli.c b/main/cli.c
index 13ef7d5..f1a51fa 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/+/14534
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-Change-Id: I7b592adbb1274dc5464dea1c5e5de0685c928553
Gerrit-Change-Number: 14534
Gerrit-PatchSet: 2
Gerrit-Owner: Benjamin Keith Ford <bford at digium.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200610/694de70d/attachment.html>


More information about the asterisk-code-review mailing list