aboutsummaryrefslogtreecommitdiffstats
path: root/storage.c
diff options
context:
space:
mode:
Diffstat (limited to 'storage.c')
-rw-r--r--storage.c2
1 files changed, 1 insertions, 1 deletions
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;
}