summaryrefslogtreecommitdiffstats
path: root/eurephiadm
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2008-12-04 11:50:04 +0100
committerDavid Sommerseth <dazo@users.sourceforge.net>2008-12-04 11:50:04 +0100
commit6587b3930a5190c88559a9b55b3ee0be24b800da (patch)
tree97a9b705f526a31b1668745b7de4790514f0da76 /eurephiadm
parentb70e51fe3c4bd225ad9815b3660e663e9f3766ec (diff)
downloadeurephia-6587b3930a5190c88559a9b55b3ee0be24b800da.tar.gz
eurephia-6587b3930a5190c88559a9b55b3ee0be24b800da.tar.xz
eurephia-6587b3930a5190c88559a9b55b3ee0be24b800da.zip
BUGFIX: Avoid showing (null) = (null) when no config params is set in db
Diffstat (limited to 'eurephiadm')
-rw-r--r--eurephiadm/eurephiadm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/eurephiadm/eurephiadm.c b/eurephiadm/eurephiadm.c
index f6ec832..b6c54c6 100644
--- a/eurephiadm/eurephiadm.c
+++ b/eurephiadm/eurephiadm.c
@@ -111,7 +111,9 @@ int cmd_ShowCfg(eurephiaCTX *ctx, eurephiaSESSION *sess, eurephiaVALUES *cfg, in
eurephiaVALUES *ptr = NULL;
fprintf(stdout, "----------------------------------------------------------------------\n");
for( ptr = vls; ptr != NULL; ptr = ptr->next) {
- fprintf(stdout, "%20s = %s\n", ptr->key, ptr->val);
+ if( ptr->key != NULL ) {
+ fprintf(stdout, "%20s = %s\n", ptr->key, ptr->val);
+ }
}
fprintf(stdout, "----------------------------------------------------------------------\n");
}