commit | 102b79bc37f8a40d5cb734fa8013b102bc92155f | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Tue Nov 02 12:19:50 2021 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Tue Nov 02 12:19:50 2021 +0100 |
tree | 5b376f8d5e09fb6461c7ecf267f95bc277f4800c | |
parent | a5e41632afce06a095c3ea8a18ffd504610b198a [diff] |
printer lyb REFACTOR return value check
diff --git a/src/printer_lyb.c b/src/printer_lyb.c index b5d9a89..b330e4c 100644 --- a/src/printer_lyb.c +++ b/src/printer_lyb.c
@@ -461,7 +461,7 @@ if (mod) { LY_CHECK_RET(lyb_write_string(mod->name, 0, sizeof(uint16_t), out, lybctx)); } else { - lyb_write_number(0, 2, out, lybctx); + LY_CHECK_RET(lyb_write_number(0, 2, out, lybctx)); return LY_SUCCESS; }