All pastes #28444 Raw Edit

Something

public text v1 · immutable
#28444 ·published 2005-11-12 06:18 UTC
rendered paste body
Index: corelib/channel.c
===================================================================
--- corelib/channel.c	(revision 904)
+++ corelib/channel.c	(working copy)
@@ -149,13 +149,14 @@
 static int show_channeltypes(int fd, int argc, char *argv[])
 {
 #define FORMAT  "%-10.10s  %-30.30s %-12.12s %-12.12s %-12.12s\n"
-	struct chanlist *cl = backends;
+	struct chanlist *cl;
 	opbx_cli(fd, FORMAT, "Type", "Description",       "Devicestate", "Indications", "Transfer");
 	opbx_cli(fd, FORMAT, "----------", "-----------", "-----------", "-----------", "--------");
 	if (opbx_mutex_lock(&chlock)) {
 		opbx_log(LOG_WARNING, "Unable to lock channel list\n");
 		return -1;
 	}
+	cl = backends;
 	while (cl) {
 		opbx_cli(fd, FORMAT, cl->tech->type, cl->tech->description, 
 			(cl->tech->devicestate) ? "yes" : "no",