From 90a45b8fc30a0b8b96c60926e638291fc0d0fa08 Mon Sep 17 00:00:00 2001 From: dequis Date: Sun, 25 Dec 2016 23:17:28 -0300 Subject: Fix some clang static analyzer warnings Nothing interesting. --- storage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'storage.c') diff --git a/storage.c b/storage.c index ab7ba44b..9e0f8345 100644 --- a/storage.c +++ b/storage.c @@ -73,7 +73,7 @@ GList *storage_init(const char *primary, char **migrate) register_storage_backend(&storage_xml); storage = storage_init_single(primary); - if (storage == NULL && storage->save == NULL) { + if (storage == NULL || storage->save == NULL) { return NULL; } -- cgit v1.2.3