summaryrefslogtreecommitdiff
path: root/src/analysis
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2023-10-09 23:49:08 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2023-10-09 23:49:08 (GMT)
commit2e144129d6884f4f9ec5d3f599ec2820613ed419 (patch)
tree76e2b122a5a3391dfb948c50048113c1eda9c2d7 /src/analysis
parent7c6fe94c90d320813d0d78a9dbef707696f31505 (diff)
Load Kaitai definitions from $KSPATH when needed.
Diffstat (limited to 'src/analysis')
-rw-r--r--src/analysis/scan/space.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/analysis/scan/space.c b/src/analysis/scan/space.c
index 909b96d..7dd9082 100644
--- a/src/analysis/scan/space.c
+++ b/src/analysis/scan/space.c
@@ -337,13 +337,15 @@ static bool g_scan_namespace_resolve(GScanNamespace *item, const char *target, G
bool result; /* Bilan à retourner */
size_t i; /* Boucle de parcours */
- result = true;
+ result = false;
for (i = 0; i < item->count; i++)
if (strcmp(target, item->names[i]) == 0)
{
*out = item->children[i];
g_object_ref(G_OBJECT(*out));
+
+ result = true;
break;
}