[gnome-games] steam: Stop parsing node after a closing bracket
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] steam: Stop parsing node after a closing bracket
- Date: Thu, 27 Sep 2018 21:40:34 +0000 (UTC)
commit 6c797051458890d084073963dbc0a35c5ae66145
Author: Tony Crisci <tony dubstepdish com>
Date: Thu Sep 27 15:57:13 2018 -0400
steam: Stop parsing node after a closing bracket
Fix a bug in the SteamRegistryParser that caused the tree hierarchy to
be flat by continuing parsing after its closing bracket.
plugins/steam/src/steam-registry.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/steam/src/steam-registry.vala b/plugins/steam/src/steam-registry.vala
index 14ead383..38306cd9 100644
--- a/plugins/steam/src/steam-registry.vala
+++ b/plugins/steam/src/steam-registry.vala
@@ -98,7 +98,7 @@ private class Games.SteamRegistry {
if (tokens[index] == "}") {
index++;
- continue;
+ break;
}
var tag = tokens[index];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]