]> git.proxmox.com Git - pve-cluster.git/commitdiff
pmxcfs database: tree struct member name is array, and cannot be false
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 29 Aug 2019 15:11:26 +0000 (17:11 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 29 Aug 2019 15:12:14 +0000 (17:12 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
data/src/database.c

index e6f4ee8f982456b191dc09e7e842bc936547df05..e205d367eedcc339c82c1a269e7ef87e8144ba00 100644 (file)
@@ -373,7 +373,7 @@ static gboolean bdb_backend_load_index(
                        te->name, te->inode, te->parent);
 
                if (te->inode == 0) {
-                       if (te->name && !strcmp(te->name, VERSIONFILENAME)) {
+                       if (!strcmp(te->name, VERSIONFILENAME)) {
                                root->version = te->version;
                                root->writer = te->writer;
                                root->mtime = te->mtime;