From 7a91737acfb493b2d7dd073475f8009b4e487ec7 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 12 Nov 2007 00:54:50 +0000 Subject: [PATCH] (display_variables): Fix DISPLAY LABELS. Thanks to Guido Gay for reporting this bug. --- src/language/dictionary/ChangeLog | 5 +++++ src/language/dictionary/sys-file-info.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/language/dictionary/ChangeLog b/src/language/dictionary/ChangeLog index 31c762f5..bc7d7134 100644 --- a/src/language/dictionary/ChangeLog +++ b/src/language/dictionary/ChangeLog @@ -1,3 +1,8 @@ +2007-11-11 Ben Pfaff + + * sys-file-info.c (display_variables): Fix DISPLAY LABELS. Thanks + to Guido Gay for reporting this bug. + 2007-11-03 Ben Pfaff Allow output files to overwrite input files (bug #21280). diff --git a/src/language/dictionary/sys-file-info.c b/src/language/dictionary/sys-file-info.c index fb953c94..b98854db 100644 --- a/src/language/dictionary/sys-file-info.c +++ b/src/language/dictionary/sys-file-info.c @@ -423,7 +423,7 @@ display_variables (const struct variable **vl, size_t n, int as) { const char *label = var_get_label (v); tab_joint_text (t, 1, r, 2, r, TAB_LEFT, - label != NULL ? "(no label)" : label); + label == NULL ? "(no label)" : label); } if (as != AS_NAMES) { -- 2.30.2