Skip to content

Commit e9f0e11

Browse files
committed
Refactor
As suggested by @zander.
1 parent 70b3618 commit e9f0e11

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/svn.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,10 @@ int SvnRevision::fetchRevProps()
523523
svn_string_t *svndate = (svn_string_t*)apr_hash_get(revprops, "svn:date", APR_HASH_KEY_STRING);
524524
svn_string_t *svnlog = (svn_string_t*)apr_hash_get(revprops, "svn:log", APR_HASH_KEY_STRING);
525525

526-
log = svnlog ? svnlog->data : 0;
526+
if (svnlog)
527+
log = svnlog->data;
528+
else
529+
log.clear();
527530
authorident = svnauthor ? identities.value(svnauthor->data) : QByteArray();
528531
epoch = svndate ? get_epoch(svndate->data) : 0;
529532
if (authorident.isEmpty()) {

0 commit comments

Comments
 (0)