[asterisk-commits] qwell: branch group/ast_storage r79271 - /team/group/ast_storage/main/storage.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Aug 13 14:06:58 CDT 2007


Author: qwell
Date: Mon Aug 13 14:06:58 2007
New Revision: 79271

URL: http://svn.digium.com/view/asterisk?view=rev&rev=79271
Log:
oops, let's actually open/close both

Modified:
    team/group/ast_storage/main/storage.c

Modified: team/group/ast_storage/main/storage.c
URL: http://svn.digium.com/view/asterisk/team/group/ast_storage/main/storage.c?view=diff&rev=79271&r1=79270&r2=79271
==============================================================================
--- team/group/ast_storage/main/storage.c (original)
+++ team/group/ast_storage/main/storage.c Mon Aug 13 14:06:58 2007
@@ -210,12 +210,12 @@
 	int res = -1;
 	void *data;
 	if (ast_storage_open(st, from, 0) == 0) {
-		if (ast_storage_open(st, from, 0) == 0) {
+		if (ast_storage_open(st, to, 0) == 0) {
 			while ((data = ast_storage_read(st, from, 0))) {
 				ast_storage_write(st, to, data, 0);
 			}
 			res = 0;
-			ast_storage_close(st, from);
+			ast_storage_close(st, to);
 		}
 		ast_storage_close(st, from);
 	}




More information about the asterisk-commits mailing list