From c76699a9001901942a2e4a742406ba8696b58779 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Thu, 7 Sep 2006 16:23:35 +0000 Subject: cleanup --- request.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'request.c') diff --git a/request.c b/request.c index 76ca763..64fa83b 100644 --- a/request.c +++ b/request.c @@ -44,12 +44,13 @@ build_request(struct dd_request *req, char *buf) if (req->wildcard != NULL) snprintf(buf + strlen(buf), BUFLEN - strlen(buf), "&wildcard=%s", req->wildcard); - if (req->mx != NULL) + if (req->mx != NULL) { snprintf(buf + strlen(buf), BUFLEN - strlen(buf), "&mx=%s", req->mx); - if (req->mx != NULL && req->backmx != NULL) - snprintf(buf + strlen(buf), BUFLEN - strlen(buf), - "&backmx=%s", req->backmx); + if (req->backmx != NULL) + snprintf(buf + strlen(buf), BUFLEN - strlen(buf), + "&backmx=%s", req->backmx); + } if (req->offline != NULL) snprintf(buf + strlen(buf), BUFLEN - strlen(buf), "&offline=%s", req->offline); -- cgit v1.2.3