summaryrefslogtreecommitdiff
path: root/tracker.c
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-06-09 18:55:12 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-06-09 18:55:12 +0200
commitea5fc2d69353e5b675ebc1375160f5bed1ab52e9 (patch)
treec1a9e29f01d5f489df11f8253a47d588f1219728 /tracker.c
parent312ba5b36ab4c45c663d0900b33c998b39ef3bf7 (diff)
Fix errorsHEADmaster
Diffstat (limited to 'tracker.c')
-rw-r--r--tracker.c2
1 files changed, 1 insertions, 1 deletions
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);
}