Correct condition
authorJoey Schulze <joey@infodrom.org>
Sun, 26 Jul 2009 16:32:48 +0000 (16:32 +0000)
committerJoey Schulze <joey@infodrom.org>
Sun, 26 Jul 2009 16:32:48 +0000 (16:32 +0000)
dtaus.c

diff --git a/dtaus.c b/dtaus.c
index 64f1449..008803b 100644 (file)
--- a/dtaus.c
+++ b/dtaus.c
@@ -1224,7 +1224,7 @@ int control2dtaus (char *ccontrol, char *cdtaus, char *cbeleg, char *ccheck, cha
       fprintf(fbeleg, "\n    %s\n\n", type);
       fprintf(fbeleg, "\n    VOL ........................:\n");
       fprintf(fbeleg, "\n    Erstellungsdatum ...........: %s\n", get_date());
-      if (date_todo) {
+      if (strlen(date_todo)) {
        fprintf(fbeleg, "\n    Ausfuehrungsdatum ..........: %s\n", date_todo);
       }
       fprintf(fbeleg, "\n    Waehrung ...................: %s\n", currency);