diff --git a/src/host.c b/src/host.c
index 1a070b28..9d83e038 100644
--- a/src/host.c
+++ b/src/host.c
@@ -518,7 +518,7 @@ cache_remove (const char *host)
 struct address_list *
 lookup_host (const char *host, int flags)
 {
-  struct address_list *al = NULL;
+  struct address_list *al;
   int silent = flags & LH_SILENT;
   int use_cache;
 
diff --git a/src/progress.c b/src/progress.c
index 937856cd..3da69852 100644
--- a/src/progress.c
+++ b/src/progress.c
@@ -96,7 +96,7 @@ static int current_impl_locked;
 int
 valid_progress_implementation_p (const char *name)
 {
-  int i = 0;
+  int i;
   struct progress_implementation *pi = implementations;
   char *colon = strchr (name, ':');
   int namelen = colon ? colon - name : strlen (name);