]> git.pond.sub.org Git - empserver/blobdiff - src/lib/common/ef_verify.c
(verify_row): uid check was too strict.
[empserver] / src / lib / common / ef_verify.c
index 5cf675c8d3a5644df2ddf864250b2f419f7225d1..1f803d3cf8d9284ed61a8ccd75494da9c38c9768 100644 (file)
@@ -115,6 +115,10 @@ verify_row(int type, int row)
                }
            } else if (ca[i].ca_table == type && i == 0) {
                /* uid */
+               /* Some files contain zeroed records, cope */
+               /* TODO tighten this check */
+               if (val.val_as.lng == 0)
+                   continue;
                if (val.val_as.lng != row) {
                    verify_fail(type, row, &ca[i],
                                "value is %ld instead of %d",