[Asterisk-cvs] asterisk/stdtime localtime.c,1.2,1.3

markster at lists.digium.com markster at lists.digium.com
Sun Sep 21 10:22:45 CDT 2003


Update of /usr/cvsroot/asterisk/stdtime
In directory mongoose.digium.com:/tmp/cvs-serv18024/stdtime

Modified Files:
	localtime.c 
Log Message:
Merge tilghman's patches


Index: localtime.c
===================================================================
RCS file: /usr/cvsroot/asterisk/stdtime/localtime.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- localtime.c	18 Sep 2003 13:34:06 -0000	1.2
+++ localtime.c	21 Sep 2003 15:23:54 -0000	1.3
@@ -981,11 +981,14 @@
 
 	sp = lclptr;
 	/* Find the right zone record */
-	while (sp != NULL) {
-		if (!strcmp(sp->name,zone))
-			break;
-		sp = sp->next;
-	}
+	if (zone == NULL)
+		sp = NULL;
+	else
+		while (sp != NULL) {
+			if (!strcmp(sp->name,zone))
+				break;
+			sp = sp->next;
+		}
 
 	if (sp == NULL) {
 		ast_tzsetwall();




More information about the svn-commits mailing list