[asterisk-commits] branch bweschke/findme_followme r31811 - /team/bweschke/findme_followme/apps/

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sat Jun 3 12:03:31 MST 2006


Author: bweschke
Date: Sat Jun  3 14:03:30 2006
New Revision: 31811

URL: http://svn.digium.com/view/asterisk?rev=31811&view=rev
Log:
 Don't init variables to NULL on declaration when they don't need to be and some other fixes...


Modified:
    team/bweschke/findme_followme/apps/app_followme.c

Modified: team/bweschke/findme_followme/apps/app_followme.c
URL: http://svn.digium.com/view/asterisk/team/bweschke/findme_followme/apps/app_followme.c?rev=31811&r1=31810&r2=31811&view=diff
==============================================================================
--- team/bweschke/findme_followme/apps/app_followme.c (original)
+++ team/bweschke/findme_followme/apps/app_followme.c Sat Jun  3 14:03:30 2006
@@ -302,7 +302,7 @@
 
 static void clear_caller(struct findme_user *tmpuser)
 {
-	struct ast_channel *outbound = NULL;
+	struct ast_channel *outbound;
 	
 	if (tmpuser && tmpuser->ochan && tmpuser->state >= 0) {
 		outbound = tmpuser->ochan;
@@ -330,7 +330,7 @@
 
 static void clear_calling_tree(struct findme_user_listptr *findme_user_list) 
 {
-	struct findme_user *tmpuser = NULL;
+	struct findme_user *tmpuser;
 	
 	AST_LIST_TRAVERSE(findme_user_list, tmpuser, entry) 		
 		clear_caller(tmpuser);
@@ -347,7 +347,7 @@
 	struct ast_frame *f;
 	int ctstatus;
 	int dg;
-	struct findme_user *tmpuser = NULL;
+	struct findme_user *tmpuser;
 	int *to = ast_calloc(1, sizeof(*to));
 	int livechannels = 0;
 	int tmpto;
@@ -612,15 +612,15 @@
 {
 	struct fm_args *tpargs;
 	struct number *nm;
-	struct ast_channel *outbound = NULL;
+	struct ast_channel *outbound;
 	struct ast_channel *caller;
-	struct ast_channel *winner = NULL;
+	struct ast_channel *winner;
 	char dialarg[512];
 	int dg;
 	char *rest, *number;
-	struct findme_user *tmpuser = NULL;
-	struct findme_user *fmuser = NULL;
-	struct findme_user *headuser = NULL;
+	struct findme_user *tmpuser;
+	struct findme_user *fmuser;
+	struct findme_user *headuser;
 	struct findme_user_listptr *findme_user_list;
 	int status;
 	



More information about the asterisk-commits mailing list