diff --git a/cocos2dx/support/user_default/CCUserDefault.cpp b/cocos2dx/support/user_default/CCUserDefault.cpp index 37a4fa3ff0..b42b0da061 100644 --- a/cocos2dx/support/user_default/CCUserDefault.cpp +++ b/cocos2dx/support/user_default/CCUserDefault.cpp @@ -409,7 +409,7 @@ void CCUserDefault::setDataForKey(const char* pKey, const CCData& value) { char *encodedData = 0; - int enclodedDataLen = base64Encode(value.getBytes(), value.getSize(), &encodedData); + base64Encode(value.getBytes(), value.getSize(), &encodedData); setValueForKey(pKey, encodedData);