Reordering for readability.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40813 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
4e401f8153
commit
4d15b48647
@ -1519,18 +1519,18 @@ GetLocalizedFileName(entry_ref& ref, BString& localizedFileName, bool traverse)
|
||||
|
||||
char* signature = attribute;
|
||||
char* context = strchr(signature, ':');
|
||||
if (context != NULL) {
|
||||
context[0] = '\0';
|
||||
context++;
|
||||
} else
|
||||
if (context == NULL)
|
||||
return B_ENTRY_NOT_FOUND;
|
||||
|
||||
context[0] = '\0';
|
||||
context++;
|
||||
|
||||
char* string = strchr(context, ':');
|
||||
if (string != NULL) {
|
||||
if (string == NULL)
|
||||
return B_ENTRY_NOT_FOUND;
|
||||
|
||||
string[0] = '\0';
|
||||
string++;
|
||||
} else
|
||||
return B_ENTRY_NOT_FOUND;
|
||||
|
||||
BCatalog catalog(signature);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user