[asterisk-commits] mogorman: branch anthonyl/usersconf-vmpassword r50984 - /team/anthonyl/usersc...

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Jan 15 15:36:55 MST 2007


Author: mogorman
Date: Mon Jan 15 16:36:54 2007
New Revision: 50984

URL: http://svn.digium.com/view/asterisk?view=rev&rev=50984
Log:
minor fixes 

Modified:
    team/anthonyl/usersconf-vmpassword/apps/app_voicemail.c

Modified: team/anthonyl/usersconf-vmpassword/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/team/anthonyl/usersconf-vmpassword/apps/app_voicemail.c?view=diff&rev=50984&r1=50983&r2=50984
==============================================================================
--- team/anthonyl/usersconf-vmpassword/apps/app_voicemail.c (original)
+++ team/anthonyl/usersconf-vmpassword/apps/app_voicemail.c Mon Jan 15 16:36:54 2007
@@ -782,11 +782,11 @@
 /* the current method i am trying to impliment just tries to change both */
 static void vm_change_password(struct ast_vm_user *vmu, const char *newpassword)
 {
-	struct ast_config   *cfg;
+	struct ast_config   *cfg = NULL;
 	struct ast_variable *var;
 	struct ast_category *cat;
-	char *category=NULL, *tmp=NULL, *value=NULL, *new=NULL;
-	int len;
+	char *category = NULL, *new = NULL;
+	const char *tmp = "";
 	FILE *configin;
 	FILE *configout;
 	int linenum=0;
@@ -795,7 +795,6 @@
 	char currcontext[256] = "";
 	char tmpin[PATH_MAX];
 	char tmpout[PATH_MAX];
-	struct stat statbuf;
 
 	if (!change_password_realtime(vmu, newpassword))
 		return;
@@ -820,7 +819,7 @@
 	}
 
 	while (!feof(configin)) {
-		char *user = NULL, *pass = NULL, *rest = NULL, *comment = NULL, *tmpctx = NULL, *tmpctxend = NULL;
+		char *comment = NULL, *tmpctx = NULL, *tmpctxend = NULL;
 
 		/* Read in the line */
 		if (fgets(inbuf, sizeof(inbuf), configin) == NULL)



More information about the asterisk-commits mailing list