[systemd-devel] [PATCH] libudev: enumerate: fix NULL-deref for subsystem-matches

Lucas De Marchi lucas.de.marchi at gmail.com
Fri Aug 30 10:12:44 PDT 2013


On Fri, Aug 30, 2013 at 1:22 PM, Colin Guthrie <gmane at colin.guthr.ie> wrote:
> '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!

this is an extension: http://gcc.gnu.org/onlinedocs/gcc/Conditionals.html

As far as I know it's supported both by clang and gcc

Lucas De Marchi


More information about the systemd-devel mailing list