From 3fdac50ad48b036bf3e918c4dbf6cbb22ea2eb20 Mon Sep 17 00:00:00 2001 From: Adam Sutton Date: Thu, 19 Sep 2013 22:17:59 +0100 Subject: [PATCH] idnode: allow NOSAVE options to be "loaded". This is needed since this routine is used to also load config on creation. So if a NOSAVE option is included there it will not load it. If it really is NOSAVE it shouldn't be in the config files anyway (due to NOSAVE check on actual save). --- src/idnode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/idnode.h b/src/idnode.h index ad34b17d..566a4ff0 100644 --- a/src/idnode.h +++ b/src/idnode.h @@ -139,7 +139,7 @@ int idnode_write0 (idnode_t *self, htsmsg_t *m, int optmask, int dosave); #define idclass_serialize(idc) idclass_serialize0(idc, 0) #define idnode_serialize(in) idnode_serialize0(in, 0) -#define idnode_load(in, m) idnode_write0(in, m, PO_NOSAVE, 0) +#define idnode_load(in, m) idnode_write0(in, m, 0, 0) #define idnode_save(in, m) idnode_read0(in, m, PO_NOSAVE) #define idnode_update(in, m) idnode_write0(in, m, PO_RDONLY | PO_WRONCE, 1)