From 2b3895cdd065fffda6693d0b19c026edc5d04b8b Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sat, 14 May 2011 16:18:48 +0000 Subject: [PATCH] Code cleanup --- src/surfer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/surfer.c b/src/surfer.c index 2e52ca0..2eae489 100644 --- a/src/surfer.c +++ b/src/surfer.c @@ -753,8 +753,8 @@ int surfer_config_load(Surfer * surfer) free(filename); _config_load_string(surfer->config, NULL, "homepage", &surfer->homepage); - if((p = getenv("http_proxy")) != NULL && sscanf(p, - "http://%255[^:]:%u", buf, &port) == 2) + if((p = getenv("http_proxy")) != NULL && sscanf(p, "http://%255[^:]:%u", + buf, &port) == 2) { surfer->proxy_type = SPT_HTTP; buf[sizeof(buf) - 1] = '\0';