]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix logging quietly.
authorRoy Marples <roy@marples.name>
Thu, 26 Mar 2015 20:25:57 +0000 (20:25 +0000)
committerRoy Marples <roy@marples.name>
Thu, 26 Mar 2015 20:25:57 +0000 (20:25 +0000)
common.c

index 0b144dc8d9eb8111be692fef63fd9bb47214a928..80a49cde297f670ce669f8930a09552384800ab7 100644 (file)
--- a/common.c
+++ b/common.c
@@ -228,9 +228,9 @@ logger(struct dhcpcd_ctx *ctx, int pri, const char *fmt, ...)
                                break;
                }
                *fp++ = '\0';
+               fmt = fmt_cpy;
        }
 
-       fmt = fmt_cpy;
 #endif
 
        if (ctx == NULL || !(ctx->options & DHCPCD_QUIET)) {