diff --git a/obexd/client/map.c b/obexd/client/map.c
index 47afc31..520e492 100644
--- a/obexd/client/map.c
+++ b/obexd/client/map.c
return g_dbus_create_error(message,
ERROR_INTERFACE ".InvalidArguments", NULL);
- if (snprintf(handle, sizeof(handle), "%" PRIx64, msg->handle) < 0)
- goto fail;
+ snprintf(handle, sizeof(handle), "%" PRIx64, msg->handle);
transfer = obc_transfer_get("x-bt/message", handle, target_file, &err);
if (transfer == NULL)
contents[0] = FILLER_BYTE;
- if (snprintf(handle, sizeof(handle), "%" PRIx64, msg->handle) < 0)
- goto fail;
+ snprintf(handle, sizeof(handle), "%" PRIx64, msg->handle);
transfer = obc_transfer_put("x-bt/messageStatus", handle, NULL,
contents, sizeof(contents), &err);