From 71f6209c4c4f106674ceb345b2014bf3665377d7 Mon Sep 17 00:00:00 2001 From: angelo Date: Thu, 3 Aug 1995 14:59:14 +0000 Subject: [PATCH] Corretta la costruzione dell'espressione chiave. Ora aggiunge il carattere '+' solo se il nome di campo aggiunto non e' vuoto. git-svn-id: svn://10.65.10.50/trunk@1673 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- include/codeb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/codeb.c b/include/codeb.c index fd388ec3c..a5cac7b78 100755 --- a/include/codeb.c +++ b/include/codeb.c @@ -640,7 +640,7 @@ HIDDEN void do_key(char *fname, RecDes *r, TAG4INFO *tag_info) if (r->Ky[i].FieldSeq[j] > MaxFields || (r->Fd[nf].TypeF == _datefld)) strcat(tag_info[i].expression,")"); /* If there's another field in key adds "+" operator: */ - if (j < (r->Ky[i].NkFields-1)) + if ((j < (r->Ky[i].NkFields-1)) && (strlen(r->Fd[nf].Name) > 0)) strcat(tag_info[i].expression,"+"); } }