[GRASS-SVN] r70661 - grass/trunk/lib/gis

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Feb 22 08:48:18 PST 2017


Author: mmetz
Date: 2017-02-22 08:48:17 -0800 (Wed, 22 Feb 2017)
New Revision: 70661

Modified:
   grass/trunk/lib/gis/wind_scan.c
Log:
libgis: always check if res > 0

Modified: grass/trunk/lib/gis/wind_scan.c
===================================================================
--- grass/trunk/lib/gis/wind_scan.c	2017-02-22 16:13:33 UTC (rev 70660)
+++ grass/trunk/lib/gis/wind_scan.c	2017-02-22 16:48:17 UTC (rev 70661)
@@ -101,7 +101,7 @@
 {
     if (projection == PROJECTION_LL) {
 	if (G_llres_scan(buf, res))
-	    return 1;
+	    return (*res > 0.0);
     }
 
     return (scan_double(buf, res) && *res > 0.0);



More information about the grass-commit mailing list