[GRASS-SVN] r44394 - grass/trunk/imagery/i.vi

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Nov 24 00:45:59 EST 2010


Author: ychemin
Date: 2010-11-23 21:45:59 -0800 (Tue, 23 Nov 2010)
New Revision: 44394

Modified:
   grass/trunk/imagery/i.vi/main.c
Log:
bug fix a segfault on loading redchan file descriptor

Modified: grass/trunk/imagery/i.vi/main.c
===================================================================
--- grass/trunk/imagery/i.vi/main.c	2010-11-23 14:50:15 UTC (rev 44393)
+++ grass/trunk/imagery/i.vi/main.c	2010-11-24 05:45:59 UTC (rev 44394)
@@ -210,7 +210,7 @@
                 || !(input6->answer) || !(input7->answer)) )
 	G_fatal_error(_("gvi index requires blue, green, red, nir, chan5 and chan7 maps"));
 
-    if ((infd_redchan = Rast_open_old(redchan, "")) < 0)
+    infd_redchan = Rast_open_old(redchan, "");
     inrast_redchan = Rast_allocate_d_buf();
 
     if (nirchan) {



More information about the grass-commit mailing list