[Top][All Lists]

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

[gnuastro-commits] master 24ca4dd 5/5: Merged redundant strlen check

From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master 24ca4dd 5/5: Merged redundant strlen check
Date: Wed, 27 Jul 2016 12:41:09 +0000 (UTC)

branch: master
commit 24ca4ddb11a77b27e631a1aef8da9095f31f7cc3
Merge: 487331f 98a2ce4
Author: Mohammad Akhlaghi <address@hidden>
Commit: Mohammad Akhlaghi <address@hidden>

    Merged redundant strlen check
    Vladimir's correction to remove a redundant call to the strlen function is
    now merged with master.
 src/arithmetic/arithmetic.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/arithmetic/arithmetic.c b/src/arithmetic/arithmetic.c
index 7cc3204..4ede5cb 100644
--- a/src/arithmetic/arithmetic.c
+++ b/src/arithmetic/arithmetic.c
@@ -74,7 +74,7 @@ add_operand(struct imgarithparams *p, char *filename, double 
-  if(strlen(filename) && gal_fits_name_is_fits(filename))
+  if(filename != NULL && gal_fits_name_is_fits(filename))
       /* Set the HDU for this filename. */
       gal_linkedlist_pop_from_stll(&p->hdus, &newnode->hdu);

reply via email to

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