[asterisk-commits] rmudgett: branch group/issue8824 r183833 - /team/group/issue8824/channels/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Mar 23 18:05:18 CDT 2009


Author: rmudgett
Date: Mon Mar 23 18:05:15 2009
New Revision: 183833

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=183833
Log:
Pedantic Russell and his char initializations.

Modified:
    team/group/issue8824/channels/chan_misdn.c

Modified: team/group/issue8824/channels/chan_misdn.c
URL: http://svn.digium.com/svn-view/asterisk/team/group/issue8824/channels/chan_misdn.c?view=diff&rev=183833&r1=183832&r2=183833
==============================================================================
--- team/group/issue8824/channels/chan_misdn.c (original)
+++ team/group/issue8824/channels/chan_misdn.c Mon Mar 23 18:05:15 2009
@@ -1301,7 +1301,7 @@
 		memmove(str_main + len_prefix, str_main, len_main);
 	}
 	memcpy(str_main, str_prefix, len_prefix);
-	str_main[len_prefix + len_main] = 0;
+	str_main[len_prefix + len_main] = '\0';
 }
 
 
@@ -2967,12 +2967,12 @@
 			if (cid_name) {
 				ast_copy_string(bc->caller.name, cid_name, sizeof(bc->caller.name));
 			} else {
-				bc->caller.name[0] = 0;
+				bc->caller.name[0] = '\0';
 			}
 			if (cid_num) {
 				ast_copy_string(bc->caller.number, cid_num, sizeof(bc->caller.number));
 			} else {
-				bc->caller.number[0] = 0;
+				bc->caller.number[0] = '\0';
 			}
 			chan_misdn_log(1, port, " --> * Setting caller to \"%s\" <%s>\n", bc->caller.name, bc->caller.number);
 		}




More information about the asterisk-commits mailing list