gnuastro-commits
[Top][All Lists]
Advanced

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

[gnuastro-commits] master b8f81ea 1/2: Initialized variable in NoiseChis


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master b8f81ea 1/2: Initialized variable in NoiseChisel to avoid warning
Date: Tue, 11 Sep 2018 13:14:14 -0400 (EDT)

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

    Initialized variable in NoiseChisel to avoid warning
    
    I saw a warning while compiling today about the `extname' in NoiseChisel's
    `detection_sn_write_to_file' (in `detection.c') function. It wasn't a
    problem, but just to avoid the warning, it is initialized to `NULL'.
---
 bin/noisechisel/detection.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/noisechisel/detection.c b/bin/noisechisel/detection.c
index e179d69..f6137d5 100644
--- a/bin/noisechisel/detection.c
+++ b/bin/noisechisel/detection.c
@@ -453,7 +453,7 @@ static void
 detection_sn_write_to_file(struct noisechiselparams *p, gal_data_t *sn,
                            gal_data_t *snind, int s0d1D2)
 {
-  char *str, *extname;
+  char *str, *extname=NULL;
   gal_list_str_t *comments=NULL;
 
   /* Comment for extension on further explanation. */



reply via email to

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