[asterisk-commits] kmoore: branch kmoore/stasis-cel_refactoring r389005 - /team/kmoore/stasis-ce...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri May 17 14:39:42 CDT 2013


Author: kmoore
Date: Fri May 17 14:39:39 2013
New Revision: 389005

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=389005
Log:
Fix a string-blanking bug

Modified:
    team/kmoore/stasis-cel_refactoring/include/asterisk/strings.h

Modified: team/kmoore/stasis-cel_refactoring/include/asterisk/strings.h
URL: http://svnview.digium.com/svn/asterisk/team/kmoore/stasis-cel_refactoring/include/asterisk/strings.h?view=diff&rev=389005&r1=389004&r2=389005
==============================================================================
--- team/kmoore/stasis-cel_refactoring/include/asterisk/strings.h (original)
+++ team/kmoore/stasis-cel_refactoring/include/asterisk/strings.h Fri May 17 14:39:39 2013
@@ -1076,6 +1076,7 @@
  */
 static force_inline char *attribute_pure ast_str_to_lower(char *str)
 {
+	char *str_orig = str;
 	if (!str) {
 		return str;
 	}
@@ -1084,7 +1085,7 @@
 		*str = tolower(*str);
 	}
 
-	return str;
+	return str_orig;
 }
 
 /*!
@@ -1096,6 +1097,7 @@
  */
 static force_inline char *attribute_pure ast_str_to_upper(char *str)
 {
+	char *str_orig = str;
 	if (!str) {
 		return str;
 	}
@@ -1104,7 +1106,7 @@
 		*str = toupper(*str);
 	}
 
-	return str;
+	return str_orig;
 }
 
 #endif /* _ASTERISK_STRINGS_H */




More information about the asterisk-commits mailing list