diff --git a/obexd/client/pbap.c b/obexd/client/pbap.c
index 4428c14..48dbac1 100644
--- a/obexd/client/pbap.c
+++ b/obexd/client/pbap.c
p = fill_apparam(p, &count, MAXLISTCOUNT_TAG, MAXLISTCOUNT_LEN);
offset = GUINT16_TO_BE(offset);
- p = fill_apparam(p, &offset, LISTSTARTOFFSET_TAG, LISTSTARTOFFSET_LEN);
+ fill_apparam(p, &offset, LISTSTARTOFFSET_TAG, LISTSTARTOFFSET_LEN);
request = pending_request_new(pbap, message);
diff --git a/obexd/plugins/filesystem.c b/obexd/plugins/filesystem.c
index 677df76..e664fc5 100644
--- a/obexd/plugins/filesystem.c
+++ b/obexd/plugins/filesystem.c
len = MIN(string->len, count);
memcpy(buf, string->str, len);
- string = g_string_erase(string, 0, len);
+ g_string_erase(string, 0, len);
return len;
}
diff --git a/obexd/plugins/pbap.c b/obexd/plugins/pbap.c
index c6d7cfc..c7e792a 100644
--- a/obexd/plugins/pbap.c
+++ b/obexd/plugins/pbap.c
len = MIN(array->len, count);
memcpy(buf, array->data, len);
- array = g_byte_array_remove_range(array, 0, len);
+ g_byte_array_remove_range(array, 0, len);
return len;
}