From: Johan Hedberg Date: Sun, 21 Nov 2010 20:41:37 +0000 (+0100) Subject: Fix compilation warning/error with g_web_set_user_agent usage X-Git-Tag: 2.0_alpha~2098 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=74558dc6e12fb842de39fecc45d81b4d84b251e3;hp=1b719b9e6045b3ff30dd7ba4518d9d358a10e479;p=framework%2Fconnectivity%2Fconnman.git Fix compilation warning/error with g_web_set_user_agent usage This patch fixes the following warning/error: tools/web-test.c: In function ‘main’: tools/web-test.c:134: error: format not a string literal and no format arguments --- diff --git a/tools/web-test.c b/tools/web-test.c index 9027a2d..8a661cf 100644 --- a/tools/web-test.c +++ b/tools/web-test.c @@ -131,7 +131,7 @@ int main(int argc, char *argv[]) } if (option_user_agent != NULL) { - g_web_set_user_agent(web, option_user_agent); + g_web_set_user_agent(web, "%s", option_user_agent); g_free(option_user_agent); }