[systemd-devel] [PATCH] libudev: enumerate: fix NULL-deref for subsystem-matches
Colin Guthrie
gmane at colin.guthr.ie
Fri Aug 30 09:22:23 PDT 2013
'Twas brillig, and David Herrmann at 30/08/13 14:50 did gyre and gimble:
> + subsystem = subsystem ? : "";
> +
zomg!!11eleven! This makes perfect sense but somehow this is the first
time I've seen this syntax before where the value between ? and : is
inherited from the test itself... nice!
For what it's worth the two other uses of this syntax in the systemd
codebase don't have a space between the ? and : (dunno if this qualifies
for a coding standard tho'!)
/me will now go and craw back under his rock...
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited http://www.tribalogic.net/
Open Source:
Mageia Contributor http://www.mageia.org/
PulseAudio Hacker http://www.pulseaudio.org/
Trac Hacker http://trac.edgewall.org/
More information about the systemd-devel
mailing list