diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cnode/cnode-algorithm.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cnode/cnode-algorithm.cpp b/src/cnode/cnode-algorithm.cpp index c5a2d54..405ab4f 100644 --- a/src/cnode/cnode-algorithm.cpp +++ b/src/cnode/cnode-algorithm.cpp @@ -379,7 +379,8 @@ cnode::show_diff(const CfgNode& cfg1, const CfgNode& cfg2, bool show_def, printf("Specified configuration path is not valid\n"); return; } - if (cfg1.isEmpty() && cfg2.isEmpty()) { + if ((cfg1.isEmpty() && cfg2.isEmpty()) + || (!cfg1.exists() && !cfg2.exists())) { printf("Configuration under specified path is empty\n"); return; } |