Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 429722 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-3 / +7 lines)
Line  Link Here
0
-- a/src/plugins/yajl/yajl.c
0
++ b/src/plugins/yajl/yajl.c
Lines 23-28 Link Here
23
 ***************************************************************************/
23
 ***************************************************************************/
24
24
25
25
26
#ifndef HAVE_KDBCONFIG
27
# include "kdbconfig.h"
28
#endif
29
26
#include "yajl.h"
30
#include "yajl.h"
27
31
28
#include <kdberrors.h>
32
#include <kdberrors.h>
Lines 340-346 Link Here
340
	KeySet *config= elektraPluginGetConfig(handle);
344
	KeySet *config= elektraPluginGetConfig(handle);
341
345
342
	// ksClear (returned);
346
	// ksClear (returned);
343
	if (keyIsUser(parentKey))
347
	if (!strncmp(keyName(parentKey), "user", 4))
344
	{
348
	{
345
		const Key * lookup = ksLookupByName(config, "/user_path", 0);
349
		const Key * lookup = ksLookupByName(config, "/user_path", 0);
346
		if (!lookup)
350
		if (!lookup)
Lines 422-428 Link Here
422
	return 1; /* success */
426
	return 1; /* success */
423
}
427
}
424
428
425
int elektraYajlSet(Plugin *handle, KeySet *returned, Key *parentKey)
429
int elektraYajlSet(Plugin *handle ELEKTRA_UNUSED, KeySet *returned, Key *parentKey)
426
{
430
{
427
	yajl_gen_config conf = { 1, "  " };
431
	yajl_gen_config conf = { 1, "  " };
428
	yajl_gen g = yajl_gen_alloc(&conf, NULL);
432
	yajl_gen g = yajl_gen_alloc(&conf, NULL);

Return to bug 429722