aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorivan.penkov@gmail.com <ivan.penkov@gmail.com@4c0a9323-5329-0410-9bdc-e9ce6186880e>2012-11-21 01:38:58 +0000
committerivan.penkov@gmail.com <ivan.penkov@gmail.com@4c0a9323-5329-0410-9bdc-e9ce6186880e>2012-11-21 01:38:58 +0000
commitf6864d2ead20da4d40e06fd432d2aeb7c11cb17d (patch)
tree744bd2b8c6867e9db46375494ac3029ae96734fd /src/client
parentCleaning up google-breakpad source code of signed-unsigned comparison warnings (diff)
downloadbreakpad-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')
-rw-r--r--src/client/linux/handler/minidump_descriptor.cc5
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";