aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/osmo_client_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmo_client_core.c b/src/osmo_client_core.c
index 0b45480..c8bd8bd 100644
--- a/src/osmo_client_core.c
+++ b/src/osmo_client_core.c
@@ -102,7 +102,7 @@ int osmo_client_capture(struct osmo_pcap_client *client, const char *device)
free_all(client);
client->device = talloc_strdup(client, device);
- if (!client) {
+ if (!client->device) {
LOGP(DCLIENT, LOGL_ERROR, "Failed to copy string.\n");
return 1;
}