mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-28 08:56:32 -05:00
style: fix sizeof() calls without parentheses
This commit is contained in:
parent
da3ef46daf
commit
8e24aaa3c6
3 changed files with 4 additions and 4 deletions
|
|
@ -901,14 +901,14 @@ static void data_source_offer(struct wl_client *client,
|
|||
wl_resource_get_user_data(resource);
|
||||
char **p;
|
||||
|
||||
p = wl_array_add(&source->mime_types, sizeof *p);
|
||||
p = wl_array_add(&source->mime_types, sizeof(*p));
|
||||
|
||||
if (p) {
|
||||
*p = strdup(mime_type);
|
||||
}
|
||||
if (!p || !*p){
|
||||
if (p) {
|
||||
source->mime_types.size -= sizeof *p;
|
||||
source->mime_types.size -= sizeof(*p);
|
||||
}
|
||||
wl_resource_post_no_memory(resource);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue