diff options
-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"; |