From 01b3cc869fe36ab17b276087e6304ccd9cc2f74c Mon Sep 17 00:00:00 2001 From: Paul Merrill Date: Thu, 16 Jun 2011 21:33:56 -0700 Subject: [PATCH] main.cpp: take address of CLIENT_VALUES --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 5c6c16c..d7b472b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -137,7 +137,7 @@ static bool parseClientConfig(const char* filename, ClientValues* conf) */ int main() { - memset(CLIENT_CONFIG, 0, sizeof(CLIENT_CONFIG)); + memset((void*)&CLIENT_CONFIG, 0, sizeof(CLIENT_CONFIG)); /* * This initializes the library and checks for potential ABI mismatches -- 2.11.4.GIT