curly wars / auto-indentation
[oweals/gnunet.git] / src / fs / gnunet-service-fs_indexing.c
index ce3f21cd6c1e33ba494ee451905e5081c44c0d6f..41a40e125a9467bc14253601e8fc4442df3ee809 100644 (file)
@@ -538,19 +538,17 @@ GNUNET_FS_handle_on_demand_block (const GNUNET_HashCode * key, uint32_t size,
   odb = (const struct OnDemandBlock *) data;
   off = GNUNET_ntohll (odb->offset);
   fn = (const char *) GNUNET_CONTAINER_multihashmap_get (ifm, &odb->file_id);
-  if (0 != ACCESS (fn, R_OK))
+  if ((NULL == fn) || (0 != ACCESS (fn, R_OK)))
   {
     GNUNET_STATISTICS_update (GSF_stats,
-                             gettext_noop ("# index blocks removed: original file inaccessible"),
-                             1,
-                             GNUNET_YES);
+                              gettext_noop
+                              ("# index blocks removed: original file inaccessible"),
+                              1, GNUNET_YES);
     GNUNET_DATASTORE_remove (dsh, key, size, data, -1, -1,
                              GNUNET_TIME_UNIT_FOREVER_REL, &remove_cont, NULL);
     return GNUNET_SYSERR;
   }
-  fh = NULL;
-  if ((NULL == fn) ||
-      (NULL ==
+  if ((NULL ==
        (fh =
         GNUNET_DISK_file_open (fn, GNUNET_DISK_OPEN_READ,
                                GNUNET_DISK_PERM_NONE))) ||