From 41f218316dce6b1bfcfb0f2754379fa74c5138ed Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 19 Oct 2013 14:35:34 +0000 Subject: warning fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@6534 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/AimOscar/src/conv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols') diff --git a/protocols/AimOscar/src/conv.cpp b/protocols/AimOscar/src/conv.cpp index 04f87d068a..d1df140180 100644 --- a/protocols/AimOscar/src/conv.cpp +++ b/protocols/AimOscar/src/conv.cpp @@ -26,6 +26,7 @@ char* process_status_msg (const char *str, const char* sn) size_t size = strlen(src) + 1; char* res = (char*)mir_alloc(size); char* dest = res; + size_t len = strlen(sn); for (; *src; ++src) { @@ -39,7 +40,6 @@ char* process_status_msg (const char *str, const char* sn) } else if (src[0] == '%' && src[1] == 'n') { - size_t len = strlen(sn); int off = dest - res; res = (char*)mir_realloc(res, size + len); dest = res + off; -- cgit v1.2.3