Don't display the revision, if it is "unknown".

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16227 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2006-02-03 22:57:23 +00:00
parent b95ed5682c
commit 129cc3cbe1

View File

@ -180,7 +180,7 @@ AboutView::AboutView(const BRect &rect)
BResources* resources = be_app->AppResources();
const char* versionString = (const char *)resources->LoadResource(
B_STRING_TYPE, "SVN:REVISION", NULL);
if (versionString != NULL) {
if (versionString != NULL && strcmp(versionString, "unknown") != 0) {
strlcat(string, " (r", sizeof(string));
strlcat(string, versionString, sizeof(string));
strlcat(string, ")", sizeof(string));