Blob Blame History Raw
--- a/server-src/tapefile.c	
+++ a/server-src/tapefile.c	
@@ -1199,8 +1199,7 @@ nb_tape_in_storage(
     int nb_tapes = 0;
 
     for (tp = tape_list; tp != NULL; tp = tp->next) {
-	if (tp->storage &&
-	    g_str_equal(storage_name, tp->storage)) {
+	if (g_strcmp0(storage_name,tp->storage) == 0) {
 	    nb_tapes++;
 	}
     }