Skip to content

Commit 18b1c83

Browse files
committed
client_t.c: fix clang warning
Fix: client_t.c:601:25: warning: address of array 'client->client_uid' will always evaluate to 'true' [-Wpointer-bool-conversion] 601 | if (client->client_uid) { | ~~ ~~~~~~~~^~~~~~~~~~ Signed-off-by: Yaniv Kaul <[email protected]>
1 parent baeafcb commit 18b1c83

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

libglusterfs/src/client_t.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -598,10 +598,8 @@ gf_client_dump_fdtables(xlator_t *this)
598598
clienttable->cliententries[count].next_free)
599599
continue;
600600
client = clienttable->cliententries[count].client;
601-
if (client->client_uid) {
602-
gf_proc_dump_build_key(key, "conn", "%d.id", count);
603-
gf_proc_dump_write(key, "%s", client->client_uid);
604-
}
601+
gf_proc_dump_build_key(key, "conn", "%d.id", count);
602+
gf_proc_dump_write(key, "%s", client->client_uid);
605603

606604
if (client->subdir_mount) {
607605
gf_proc_dump_build_key(key, "conn", "%d.subdir", count);

0 commit comments

Comments
 (0)