summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcpsrv/host.cc
diff options
context:
space:
mode:
authorShawn Routhier <sar@isc.org>2015-02-28 02:28:00 +0100
committerShawn Routhier <sar@isc.org>2015-02-28 02:28:00 +0100
commitff0f2e2ad36bcbced4ee88f9d56aaad553c1ac82 (patch)
tree0f5ad5daa421b4f5afc5e99c44ed40328671bbf6 /src/lib/dhcpsrv/host.cc
parent[trac3706] Clean up some issues from cpp check (diff)
downloadkea-ff0f2e2ad36bcbced4ee88f9d56aaad553c1ac82.tar.xz
kea-ff0f2e2ad36bcbced4ee88f9d56aaad553c1ac82.zip
[trac3706] More cpp cleanup
Remove another unused variable in memfile_ubench.cc Actually use the trimmed variable in host.cc Update commetns in process_spawn.[cc h]
Diffstat (limited to 'src/lib/dhcpsrv/host.cc')
-rw-r--r--src/lib/dhcpsrv/host.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/dhcpsrv/host.cc b/src/lib/dhcpsrv/host.cc
index 6f5a0a4926..626ccfaa92 100644
--- a/src/lib/dhcpsrv/host.cc
+++ b/src/lib/dhcpsrv/host.cc
@@ -225,8 +225,8 @@ void
Host::addClientClassInternal(ClientClasses& classes,
const std::string& class_name) {
std::string trimmed = util::str::trim(class_name);
- if (!class_name.empty()) {
- classes.insert(ClientClass(class_name));
+ if (!trimmed.empty()) {
+ classes.insert(ClientClass(trimmed));
}
}