From f35b5aa93ee716d14cd55ce56283139316950bab Mon Sep 17 00:00:00 2001 From: Takahiro OHKUBO Date: Sun, 23 Apr 2023 15:04:27 +0900 Subject: [PATCH] =?UTF-8?q?output.c=E3=81=AEWmaybe-uninitialize=E3=82=92?= =?UTF-8?q?=E3=81=A7=E3=81=AA=E3=81=84=E3=82=88=E3=81=86=E3=81=AB=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3=E3=81=97=E3=81=9F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/output.c b/output.c index e3a2851..41dc810 100644 --- a/output.c +++ b/output.c @@ -58,13 +58,13 @@ void OutputCN(COMMAND *com, HEAD *head, TYPE *type, DATASET *cn){ cn_ = malloc(sizeof(double*) * cn->n); for (i=0; in; i++) cn_[i] = malloc(sizeof(double) * cn->m); - for (j=0; jm; j++) cn_[0][j] = cn->y[0][j]; for (i=1; in; i++){ for (j=0; jm; j++){ cn_[i][j] = cn_[i-1][j] + cn->y[i][j]; } } + for (j=0; jm; j++) cn_[0][j] = cn->y[0][j]; sprintf(outfile, "%s.cn", com->outbase); f = fopen(outfile, "w");