Browse Source

[3360] Use string object to compare the text in dbaccess_parser unit test.

Marcin Siodelski 11 years ago
parent
commit
df6af6f3e3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/dhcpsrv/tests/dbaccess_parser_unittest.cc

+ 1 - 1
src/lib/dhcpsrv/tests/dbaccess_parser_unittest.cc

@@ -90,7 +90,7 @@ public:
             // The only parameter which is not quoted is persist as it
             // is a boolean value.
             result += quote + keyval[i] + quote + colon + space;
-            if (keyval[i] != "persist") {
+            if (std::string(keyval[i]) != "persist") {
                 result += quote + keyval[i + 1] + quote;
             } else {
                 result += keyval[i + 1];