From 718671a30dadaf937fa3863781724f62fd0e0396 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Thu, 3 Dec 2009 18:19:30 +0000 Subject: [PATCH] fix code before decl git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15776 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_memcache/mod_memcache.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mod/applications/mod_memcache/mod_memcache.c b/src/mod/applications/mod_memcache/mod_memcache.c index 6d5d628b42..c7e39c56bc 100755 --- a/src/mod/applications/mod_memcache/mod_memcache.c +++ b/src/mod/applications/mod_memcache/mod_memcache.c @@ -227,11 +227,12 @@ SWITCH_STANDARD_API(memcache_function) } switch_safe_free(val); } else if ((!strcasecmp(subcmd, "increment") || !strcasecmp(subcmd, "decrement")) && argc > 1) { - key = argv[1]; uint64_t ivalue; unsigned int offset = 1; switch_bool_t increment = SWITCH_TRUE; char *svalue = NULL; + key = argv[1]; + if (argc > 2) { offset = (unsigned int)strtol(argv[2], NULL, 10); svalue = argv[2];