diff options
author | satorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-01 05:51:51 +0000 |
---|---|---|
committer | satorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-01 05:51:51 +0000 |
commit | aefa880837fb40cb0291f991e6307abc20da07ab (patch) | |
tree | c61a5d812d87da299f660dede0cb0f604fc19372 /dbus/values_util_unittest.cc | |
parent | 015d40dd2b0ff5b3d23111a2fd172142fae2a600 (diff) | |
download | chromium_src-aefa880837fb40cb0291f991e6307abc20da07ab.zip chromium_src-aefa880837fb40cb0291f991e6307abc20da07ab.tar.gz chromium_src-aefa880837fb40cb0291f991e6307abc20da07ab.tar.bz2 |
dbus: Fix a crash in dbus_unittests that happens on Ubuntu 11.10
AppendObjectPath() can crash on some systems if an invalid object path is given.
TEST=run dbus_unittests on Ubuntu 11.10
BUG=none
Review URL: https://chromiumcodereview.appspot.com/10440131
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139977 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'dbus/values_util_unittest.cc')
-rw-r--r-- | dbus/values_util_unittest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dbus/values_util_unittest.cc b/dbus/values_util_unittest.cc index 020808c..eef60a6 100644 --- a/dbus/values_util_unittest.cc +++ b/dbus/values_util_unittest.cc @@ -39,7 +39,7 @@ TEST(ValuesUtilTest, PopBasicTypes) { writer.AppendString(kStringValue); const std::string kEmptyStringValue; writer.AppendString(kEmptyStringValue); - const dbus::ObjectPath kObjectPathValue("ObjectPath"); + const dbus::ObjectPath kObjectPathValue("/ObjectPath"); writer.AppendObjectPath(kObjectPathValue); dbus::MessageReader reader(response.get()); |