From 5a86b40e33c129f20ba750a265bf0a327d327869 Mon Sep 17 00:00:00 2001 From: PulkoMandy Date: Tue, 18 Jul 2023 21:25:01 +0200 Subject: [PATCH] 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 --- src/bin/xres.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/bin/xres.cpp b/src/bin/xres.cpp index 1fc0b110be..fd32cc752d 100644 --- a/src/bin/xres.cpp +++ b/src/bin/xres.cpp @@ -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 != ':')