Skip to content

Commit a20712c

Browse files
committed
server/netset.c: comment about true meaning of "!val" clause [#266]
Signed-off-by: Jim Klimov <[email protected]>
1 parent e888533 commit a20712c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

server/netset.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ static void set_var(nut_ctype_t *client, const char *upsname, const char *var,
5656
val = sstate_getinfo(ups, var);
5757

5858
if (!val) {
59+
/* Technically, this includes state tree entries
60+
* with a defined name but null value so far.
61+
* FIXME? Use sstate_getnode() to differentiate
62+
* the cases? Any practical use for this?
63+
*/
5964
send_err(client, NUT_ERR_VAR_NOT_SUPPORTED);
6065
return;
6166
}

0 commit comments

Comments
 (0)