[svn-commits] kpfleming: branch 1.4 r176254 - /branches/1.4/main/utils.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Mon Feb 16 15:41:46 CST 2009
Author: kpfleming
Date: Mon Feb 16 15:41:46 2009
New Revision: 176254
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=176254
Log:
correct a logic error in the last stringfields commit... don't mark additional space as allocated if the string was built using already-allocated space
Modified:
branches/1.4/main/utils.c
Modified: branches/1.4/main/utils.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.4/main/utils.c?view=diff&rev=176254&r1=176253&r2=176254
==============================================================================
--- branches/1.4/main/utils.c (original)
+++ branches/1.4/main/utils.c Mon Feb 16 15:41:46 2009
@@ -1298,9 +1298,11 @@
vsprintf(target, format, ap2);
}
- fields[index] = target;
- mgr->used += needed;
- mgr->space -= needed;
+ if (fields[index] != target) {
+ fields[index] = target;
+ mgr->used += needed;
+ mgr->space -= needed;
+ }
}
void __ast_string_field_index_build(struct ast_string_field_mgr *mgr,
More information about the svn-commits
mailing list