summaryrefslogtreecommitdiff
path: root/tracker.c
diff options
context:
space:
mode:
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);
}