Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
static struct pakfire_parser_declaration* pakfire_parser_find_declaration(
struct pakfire_parser* parser, const char* namespace, const char* name) {
- struct pakfire_parser_declaration* d;
+ struct pakfire_parser_declaration* d = NULL;
char* n = NULL;
// Create a working copy of namespace
if (namespace)
n = strdupa(namespace);
- while (1) {
+ for (;;) {
d = pakfire_parser_get_declaration_recursive(parser, n, name);
if (d && d->value)
return d;