diff options
Diffstat (limited to 'pseudo_client.c')
-rw-r--r-- | pseudo_client.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/pseudo_client.c b/pseudo_client.c index c933329..c5a1531 100644 --- a/pseudo_client.c +++ b/pseudo_client.c @@ -466,13 +466,10 @@ client_ping(void) { ping.type = PSEUDO_MSG_PING; ping.op = OP_NONE; - if (!tag) - tag = strdup(""); - ping.pathlen = snprintf(tagbuf, sizeof(tagbuf), "%s%c%s", program_invocation_name ? program_invocation_name : "<unknown>", 0, - tag); + tag ? tag : ""); free(tag); ping.client = getpid(); ping.result = 0; |