Date: Thu, 09 Mar 2017 09:26:37 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-x11@FreeBSD.org Subject: [Bug 196678] x11-servers/xorg-server: make config/devd recognize /dev/input/eventX from multimedia/webcamd Message-ID: <bug-196678-8047-tMojCpGo2B@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-196678-8047@https.bugs.freebsd.org/bugzilla/> References: <bug-196678-8047@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D196678 --- Comment #55 from rozhuk.im@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 =3D input_option_new(options, "device", dev_path); if (NULL =3D=3D 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? --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-196678-8047-tMojCpGo2B>