chiark / gitweb /
server/admin.c: Fix `=' vs `==' error in assertion.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 25 May 2020 15:26:08 +0000 (16:26 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 25 May 2020 15:26:08 +0000 (16:26 +0100)
Oops.  Well, at least this /shouldn't/ have done anything bad...  I
guess GCC has only just started warning about this because older
versions of <assert.h> provide the necessary parentheses already.

server/admin.c

index eb965c1c9b2bf1c63e46d9a7aa0a39666cb37a72..3076d931ad8e7787fa1c8260e06a0f3c46cda653 100644 (file)
@@ -897,7 +897,7 @@ static void a_jobdestroy(admin_svcop *svc)
   IF_TRACING(T_ADMIN, {
     trace(T_ADMIN, "admin: destroying job %s (%u)", a_jobidencode(svc), i);
   })
-  assert(j->v[i].u.op = svc);
+  assert(j->v[i].u.op == svc);
   j->v[i].u.next = j->free;
   j->v[i].seq++;
   j->free = i;