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:
Eitan Adler 2013-03-04 02:21:26 +00:00
parent 1d9bf149ef
commit a6393aa163

View File

@ -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",