]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
coredump: drop an unused variable
authorFrantisek Sumsal <frantisek@sumsal.cz>
Sat, 20 Aug 2022 19:04:24 +0000 (21:04 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Sat, 20 Aug 2022 19:04:24 +0000 (21:04 +0200)
src/coredump/coredump.c

index 3ec41a32c37cc033f7ea910e08bf4eceafbbf47e..98e7492811cce9987388b6a68e1ef8109352a7e7 100644 (file)
@@ -931,7 +931,6 @@ log:
 }
 
 static int save_context(Context *context, const struct iovec_wrapper *iovw) {
-        unsigned count = 0;
         const char *unit;
         int r;
 
@@ -955,7 +954,6 @@ static int save_context(Context *context, const struct iovec_wrapper *iovw) {
                         p = startswith(iovec->iov_base, meta_field_names[i]);
                         if (p) {
                                 context->meta[i] = p;
-                                count++;
                                 break;
                         }
                 }