summaryrefslogtreecommitdiff
path: root/desktop/searchweb.c
diff options
context:
space:
mode:
authorFran├žois Revel <mmu_man@netsurf-browser.org>2010-01-02 02:57:18 +0000
committerFran├žois Revel <mmu_man@netsurf-browser.org>2010-01-02 02:57:18 +0000
commit18e27fb499e0bcada28b76082e49c3b2eaab22eb (patch)
tree3b241c6daaf7d5c1425daa1c21896b167de8da28 /desktop/searchweb.c
parent3ea6fa1fd995371e8b160e00ea4859256edc9568 (diff)
downloadnetsurf-18e27fb499e0bcada28b76082e49c3b2eaab22eb.tar.gz
netsurf-18e27fb499e0bcada28b76082e49c3b2eaab22eb.tar.bz2
C89.
svn path=/trunk/netsurf/; revision=9779
Diffstat (limited to 'desktop/searchweb.c')
-rw-r--r--desktop/searchweb.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/desktop/searchweb.c b/desktop/searchweb.c
index 2995627f6..69ef10d05 100644
--- a/desktop/searchweb.c
+++ b/desktop/searchweb.c
@@ -96,9 +96,10 @@ void search_web_provider_details(int reference)
{
char buf[300];
int ref = 0;
+ FILE *f;
if (search_engines_file_location == NULL)
return;
- FILE *f = fopen(search_engines_file_location, "r");
+ f = fopen(search_engines_file_location, "r");
if (f == NULL)
return;
while (fgets(buf, sizeof(buf), f) != NULL) {
@@ -204,6 +205,7 @@ char *search_web_get_url(const char *encsearchterm)
void search_web_retrieve_ico(bool localdefault)
{
char *url;
+ struct content *icocontent;
if (localdefault) {
if (search_default_ico_location == NULL)
return;
@@ -219,7 +221,7 @@ void search_web_retrieve_ico(bool localdefault)
url = search_web_ico_name();
}
- struct content *icocontent = NULL;
+ icocontent = NULL;
if (url == NULL) {
warn_user(messages_get("NoMemory"), 0);
return;