Reverse hash GetEntry() return code vs found/not found
[platform/upstream/rpm.git] / lib / fprint.c
index 418f61c..e5de558 100644 (file)
@@ -54,8 +54,8 @@ static const struct fprintCacheEntry_s * cacheContainsDirectory(
     const struct fprintCacheEntry_s ** data;
 
     if (rpmFpEntryHashGetEntry(cache->ht, dirName, &data, NULL, NULL))
-       return NULL;
-    return data[0];
+       return data[0];
+    return NULL;
 }
 
 /**