]> diplodocus.org Git - nmh/blobdiff - sbr/context_save.c
Fix invalid pointer arithmetic.
[nmh] / sbr / context_save.c
index 9f53397bfb2b2fa795e5be0018565d3461805213..61aa736ffcf65ba790b18040a0973134d29c6a65 100644 (file)
@@ -40,11 +40,9 @@ context_save (void)
     sigprocmask (SIG_BLOCK, &set, &oset);
 
     if (!(out = lkfopendata (ctxpath, "w", &failed_to_lock))) {
-       if (failed_to_lock) {
+       if (failed_to_lock)
            adios (ctxpath, "failed to lock");
-       } else {
-           adios (ctxpath, "unable to write");
-       }
+        adios (ctxpath, "unable to write");
     }
     for (np = m_defs; np; np = np->n_next)
        if (np->n_context)