[asterisk-commits] trunk r32604 - /trunk/apps/app_followme.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Jun 6 09:54:53 MST 2006


Author: kpfleming
Date: Tue Jun  6 11:54:52 2006
New Revision: 32604

URL: http://svn.digium.com/view/asterisk?rev=32604&view=rev
Log:
fix some compiler warnings about variables used before initialization

Modified:
    trunk/apps/app_followme.c

Modified: trunk/apps/app_followme.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_followme.c?rev=32604&r1=32603&r2=32604&view=diff
==============================================================================
--- trunk/apps/app_followme.c (original)
+++ trunk/apps/app_followme.c Tue Jun  6 11:54:52 2006
@@ -479,7 +479,7 @@
 	int *to = ast_calloc(1, sizeof(*to));
 	int livechannels = 0;
 	int tmpto;
-	long totalwait = 0, wtd, towas;
+	long totalwait = 0, wtd, towas = *to;
 	char *callfromname;
 	char *pressbuttonname;
 
@@ -779,7 +779,7 @@
 	struct number *nm;
 	struct ast_channel *outbound;
 	struct ast_channel *caller;
-	struct ast_channel *winner;
+	struct ast_channel *winner = NULL;
 	char dialarg[512];
 	int dg, idx;
 	char *rest, *number;



More information about the asterisk-commits mailing list