1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-03-09 23:38:56 +00:00

wifi: fix unused-result warning in log_ENOMEM()

Use log_vENOMEM() as we don't use the return-code.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
This commit is contained in:
David Herrmann 2014-05-08 11:06:07 +02:00
parent 78cf818484
commit e2781c0a7a

View file

@ -1679,7 +1679,7 @@ static int supplicant_status_fn(struct wpas *w,
log_debug("local p2p-address is: %s", p2p_mac);
t = strdup(p2p_mac);
if (!t) {
log_ENOMEM();
log_vENOMEM();
} else {
free(s->p2p_mac);
s->p2p_mac = t;