From ea5fc2d69353e5b675ebc1375160f5bed1ab52e9 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Thu, 9 Jun 2016 18:55:12 +0200 Subject: Fix errors --- tracker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tracker.c') diff --git a/tracker.c b/tracker.c index 41de365..3417791 100644 --- a/tracker.c +++ b/tracker.c @@ -199,7 +199,7 @@ buildrequest(struct bttracker *tp) if (tp->key != NULL) len += snprintf(buf + len, buflen - len, "key=%s", tp->key); - if (*tp->trackerid != NULL) { + if (*tp->trackerid != '\0') { bthexdump(hash, tp->trackerid, sizeof(hash)); len += snprintf(buf + len, buflen - len, "trackerid=%s", hash); } -- cgit v1.2.3