[Freeswitch-svn] [commit] r9158 - freeswitch/trunk/src

Freeswitch SVN mikej at freeswitch.org
Thu Jul 24 03:20:09 EDT 2008


Author: mikej
Date: Thu Jul 24 03:20:09 2008
New Revision: 9158

Modified:
   freeswitch/trunk/src/switch_buffer.c

Log:
msvc build fix

Modified: freeswitch/trunk/src/switch_buffer.c
==============================================================================
--- freeswitch/trunk/src/switch_buffer.c	(original)
+++ freeswitch/trunk/src/switch_buffer.c	Thu Jul 24 03:20:09 2008
@@ -229,7 +229,7 @@
 	if (switch_test_flag(buffer, SWITCH_BUFFER_FLAG_DYNAMIC)) {
 		if (freespace < datalen && (!buffer->max_len || (buffer->used + datalen <= buffer->max_len))) {
 			switch_size_t new_size, new_block_size;
-			void *data;
+			void *tmp;
 
 			new_size = buffer->datalen + datalen;
 			new_block_size = buffer->datalen + buffer->blocksize;
@@ -238,10 +238,10 @@
 				new_size = new_block_size;
 			}
 			buffer->head = buffer->data;
-			if (!(data = realloc(buffer->data, new_size))) {
+			if (!(tmp = realloc(buffer->data, new_size))) {
 				return 0;
 			}
-			buffer->data = data;
+			buffer->data = tmp;
 			buffer->head = buffer->data;
 			buffer->datalen = new_size;
 		}



More information about the Freeswitch-svn mailing list