[Bug 196678] x11-servers/xorg-server: make config/devd recognize /dev/input/eventX from multimedia/webcamd

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Mar 9 09:26:38 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196678

--- Comment #55 from rozhuk.im at gmail.com ---
(In reply to Matthew Rezny from comment #52)

"inner loop re-using the index variable of the outer loop for an unrelated
purpose"
get_dev_type_by_path()
reuse 'i' and it is OK.

"a series of calls that goto a cleanup label on failure, but only after
overwriting the working pointer with NULL, etc"
options = input_option_new(options, "device", dev_path);
        if (NULL == options)
                goto err_out;
...
err_out:
...
        input_option_free_list(&options);
This is from Hans Petter Selasky patch, I do not check is input_option_new()
work as realloc() (return NULL on fail but do not free mem).

Can you provide more details/feedback?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-x11 mailing list