diff options
author | Thiago Macieira <thiago@cassini.local.lan> | 2007-12-24 12:57:55 -0200 |
---|---|---|
committer | Thiago Macieira <thiago@cassini.local.lan> | 2007-12-24 12:57:55 -0200 |
commit | 453ea6b649151fee4c567b860029b455dca49cd8 (patch) | |
tree | c291495dd544d31b6ff61f962d38f5e5b4d8704b /src | |
parent | 8d7b49e591879c12c863aabb65c66751ba8b697c (diff) | |
download | svn2git-453ea6b649151fee4c567b860029b455dca49cd8.tar svn2git-453ea6b649151fee4c567b860029b455dca49cd8.tar.gz svn2git-453ea6b649151fee4c567b860029b455dca49cd8.tar.bz2 svn2git-453ea6b649151fee4c567b860029b455dca49cd8.tar.xz svn2git-453ea6b649151fee4c567b860029b455dca49cd8.zip |
Don't crash on empty author
Diffstat (limited to 'src')
-rw-r--r-- | src/svn.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/svn.cpp b/src/svn.cpp index d294f54..dcbd40c 100644 --- a/src/svn.cpp +++ b/src/svn.cpp @@ -398,7 +398,7 @@ int SvnPrivate::exportRevision(int revnum) svn_string_t *svnlog = (svn_string_t*)apr_hash_get(revprops, "svn:log", APR_HASH_KEY_STRING); QByteArray log = (char *)svnlog->data; - QByteArray authorident = identities.value((char *)svnauthor->data); + QByteArray authorident = svnauthor ? identities.value((char *)svnauthor->data) : QByteArray(); time_t epoch = get_epoch((char*)svndate->data); if (authorident.isEmpty()) { if (!svnauthor || svn_string_isempty(svnauthor)) |