xres: fix extracting resources
Regression introduced in hrev51641 which added braces to fix a misleading indentation warning. The code was behaving correctly and the indentation was wrong. Change-Id: I378ff3ed6209917b44387fc29459b6e492c5eb9c
This commit is contained in:
+2
-3
@@ -746,10 +746,9 @@ parse_resource_id(const char *toParse, ResourceID &resourceID,
|
||||
resourceID.id = (negative ? -id : id);
|
||||
|
||||
if (*toParse == '\0') {
|
||||
if (name) {
|
||||
if (name)
|
||||
*name = kDefaultResourceName;
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if (*toParse != ':')
|
||||
|
||||
Reference in New Issue
Block a user