gnuastro-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnuastro-commits] master 9a91bb1: Table: corrected compiler warning


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master 9a91bb1: Table: corrected compiler warning
Date: Tue, 28 May 2019 16:26:22 -0400 (EDT)

branch: master
commit 9a91bb1d74d2c3e9602cf82696bcff15018442b9
Author: Mohammad Akhlaghi <address@hidden>
Commit: Mohammad Akhlaghi <address@hidden>

    Table: corrected compiler warning
    
    Until now, there was a compiler warning, saying that `after' (in
    `table_unit_conversion') may be used uninitialized. To silence this
    warning, with this commit, we initialize it to `NULL'.
---
 bin/table/table.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/table/table.c b/bin/table/table.c
index b284aa6..b2914e4 100644
--- a/bin/table/table.c
+++ b/bin/table/table.c
@@ -349,7 +349,7 @@ table_unit_conversion(struct tableparams *p, int w0i1)
 {
   int isfirstcol;
   struct wcsprm *wcs=p->wcs;
-  gal_data_t *tmp, *before, *after, *t1=NULL, *t2=NULL, *t3=NULL;
+  gal_data_t *tmp, *before, *after=NULL, *t1=NULL, *t2=NULL, *t3=NULL;
   size_t i, j, ndim=wcs->naxis, startcol = w0i1 ? p->imgtowcs : p->wcstoimg;
 
   /* Go to the column that we need to convert. */



reply via email to

[Prev in Thread] Current Thread [Next in Thread]