Skip to content

Commit

Permalink
server/netset.c: comment about true meaning of "!val" clause [network…
Browse files Browse the repository at this point in the history
…upstools#266]

Signed-off-by: Jim Klimov <[email protected]>
  • Loading branch information
jimklimov committed Jul 23, 2024
1 parent e888533 commit a20712c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/netset.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ static void set_var(nut_ctype_t *client, const char *upsname, const char *var,
val = sstate_getinfo(ups, var);

if (!val) {
/* Technically, this includes state tree entries
* with a defined name but null value so far.
* FIXME? Use sstate_getnode() to differentiate
* the cases? Any practical use for this?
*/
send_err(client, NUT_ERR_VAR_NOT_SUPPORTED);
return;
}
Expand Down

0 comments on commit a20712c

Please sign in to comment.