You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
951 B
26 lines
951 B
From ff7ed27039693f91e8348495f3b909c23871123d Mon Sep 17 00:00:00 2001
|
|
From: David Tardon <dtardon@redhat.com>
|
|
Date: Thu, 18 Jan 2018 10:42:04 +0100
|
|
Subject: [PATCH 1/2] do not try to use [] on an empty string
|
|
|
|
---
|
|
src/libcmis/ws-relatedmultipart.cxx | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/libcmis/ws-relatedmultipart.cxx b/src/libcmis/ws-relatedmultipart.cxx
|
|
index 3b31634..675c274 100644
|
|
--- a/src/libcmis/ws-relatedmultipart.cxx
|
|
+++ b/src/libcmis/ws-relatedmultipart.cxx
|
|
@@ -169,7 +169,7 @@ RelatedMultipart::RelatedMultipart( const string& body, const string& contentTyp
|
|
if ( inHeaders )
|
|
{
|
|
// Remove potential \r at the end
|
|
- if ( line[line.length() - 1] == '\r' )
|
|
+ if ( !line.empty() && line[line.length() - 1] == '\r' )
|
|
line = line.substr( 0, line.length() - 1 );
|
|
|
|
if ( line.empty( ) )
|
|
--
|
|
2.14.3
|
|
|