mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-25 20:16:14 -05:00
[misc] Change json_drilldown to _select and fix error case
This commit is contained in:
@@ -33,11 +33,12 @@
|
||||
#include "logger.h"
|
||||
|
||||
json_object *
|
||||
jparse_drilldown(json_object *haystack, const char *keys[])
|
||||
jparse_select(json_object *haystack, const char *keys[])
|
||||
{
|
||||
json_object *needle;
|
||||
json_bool found;
|
||||
|
||||
needle = NULL;
|
||||
while (*keys)
|
||||
{
|
||||
found = json_object_object_get_ex(haystack, *keys, &needle);
|
||||
|
||||
Reference in New Issue
Block a user