From a6393aa163cfa598e5f1c5cb386cef017bd67dec Mon Sep 17 00:00:00 2001 From: Eitan Adler Date: Mon, 4 Mar 2013 02:21:26 +0000 Subject: [PATCH] devd: Use string::empty() instea of string::length() == 0. Submitted by: Christoph Mallon Approved by: cperciva (mentor) --- sbin/devd/devd.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/devd/devd.cc b/sbin/devd/devd.cc index 16f925602a02..b52bf22de0aa 100644 --- a/sbin/devd/devd.cc +++ b/sbin/devd/devd.cc @@ -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",