diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2012-06-30 18:20:20 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2012-06-30 18:21:26 +0200 |
commit | 6b11a18071254a443c8fe7e7b0b1c95b0f9fd35e (patch) | |
tree | 88cced9ff3bb7a89aa3a76bbd54591994ed01cc7 /ucb/source/ucp/ftp | |
parent | 611334aa74f97768717376da637bea9baac015aa (diff) |
Some cppcheck cleaning
Change-Id: I14cab3dfd26ac1568feef902b566873cecf049b9
Diffstat (limited to 'ucb/source/ucp/ftp')
-rw-r--r-- | ucb/source/ucp/ftp/ftpurl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ucb/source/ucp/ftp/ftpurl.cxx b/ucb/source/ucp/ftp/ftpurl.cxx index 39f2a65686fa..9840fa4d2a0c 100644 --- a/ucb/source/ucp/ftp/ftpurl.cxx +++ b/ucb/source/ucp/ftp/ftpurl.cxx @@ -215,7 +215,7 @@ void FTPURL::parse(const rtl::OUString& url) *p1 = 0; if(buffer[0]) { - if( strcmp(buffer,"..") == 0 && m_aPathSegmentVec.size() && m_aPathSegmentVec.back() != ".." ) + if( strcmp(buffer,"..") == 0 && !m_aPathSegmentVec.empty() && m_aPathSegmentVec.back() != ".." ) m_aPathSegmentVec.pop_back(); else if(strcmp(buffer,".") == 0) ; // Ignore |