devd: Use string::empty() instea of string::length() == 0.
Submitted by: Christoph Mallon <christoph.mallon@gmx.de> Approved by: cperciva (mentor)
This commit is contained in:
parent
1d9bf149ef
commit
a6393aa163
@ -319,7 +319,7 @@ media::do_match(config &c)
|
||||
// the name of interest, first try device-name and fall back
|
||||
// to subsystem if none exists.
|
||||
value = c.get_variable("device-name");
|
||||
if (value.length() == 0)
|
||||
if (value.empty())
|
||||
value = c.get_variable("subsystem");
|
||||
if (Dflag)
|
||||
fprintf(stderr, "Testing media type of %s against 0x%x\n",
|
||||
|
Loading…
Reference in New Issue
Block a user