diff options
author | ivan.penkov@gmail.com <ivan.penkov@gmail.com@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2012-11-21 01:38:58 +0000 |
---|---|---|
committer | ivan.penkov@gmail.com <ivan.penkov@gmail.com@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2012-11-21 01:38:58 +0000 |
commit | f6864d2ead20da4d40e06fd432d2aeb7c11cb17d (patch) | |
tree | 744bd2b8c6867e9db46375494ac3029ae96734fd /src/client/linux | |
parent | Cleaning up google-breakpad source code of signed-unsigned comparison warnings (diff) | |
download | breakpad-f6864d2ead20da4d40e06fd432d2aeb7c11cb17d.tar.xz |
Fix unused variable warning in optimized build (fix proveded by Matthew Riley)
http://breakpad.appspot.com/499002/
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1084 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/client/linux')
-rw-r--r-- | src/client/linux/handler/minidump_descriptor.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/linux/handler/minidump_descriptor.cc b/src/client/linux/handler/minidump_descriptor.cc index af314a94..07b70a04 100644 --- a/src/client/linux/handler/minidump_descriptor.cc +++ b/src/client/linux/handler/minidump_descriptor.cc @@ -65,8 +65,9 @@ void MinidumpDescriptor::UpdatePath() { GUID guid; char guid_str[kGUIDStringLength + 1]; - bool r = CreateGUID(&guid) && GUIDToString(&guid, guid_str, sizeof(guid_str)); - assert(r); + if (!CreateGUID(&guid) || !GUIDToString(&guid, guid_str, sizeof(guid_str))) { + assert(false); + } path_.clear(); path_ = directory_ + "/" + guid_str + ".dmp"; |