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

Friendly Automation asteriskteam at digium.com
Wed Jun 10 09:31:39 CDT 2020


Friendly Automation has submitted this change. ( 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(-)

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



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: 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/e6a8cf8c/attachment-0001.html>


More information about the asterisk-code-review mailing list