commit | 2fd2a1fa66d8ec577eb3deb445f6acf8feefedb8 | [log] [tgz] |
---|---|---|
author | Radek Krejci <rkrejci@cesnet.cz> | Mon Feb 13 11:06:04 2017 +0100 |
committer | Radek Krejci <rkrejci@cesnet.cz> | Mon Feb 13 11:06:04 2017 +0100 |
tree | ef5f7b683b355e730ef46473d34b44fd1368f1da | |
parent | 37f9ba37d14e59a50eec8941b6e9aa6159b04cd3 [diff] [blame] |
schema printers BUGFIX printing status in complex extension instance correct checking for no value
diff --git a/src/printer_yang.c b/src/printer_yang.c index 4160361..a0112bd 100755 --- a/src/printer_yang.c +++ b/src/printer_yang.c
@@ -2054,8 +2054,8 @@ break; case LY_STMT_STATUS: flags = lys_ext_complex_get_substmt(LY_STMT_STATUS, (struct lys_ext_instance_complex *)ext[u], NULL); - if (!flags) { - return; + if (!flags || !(*flags)) { + break; } if (*flags & LYS_STATUS_CURR) {