[GRASS-SVN] r72080 - grass/branches/releasebranch_7_4/imagery/i.ortho.photo/i.ortho.photo

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jan 15 10:57:41 PST 2018


Author: neteler
Date: 2018-01-15 10:57:41 -0800 (Mon, 15 Jan 2018)
New Revision: 72080

Modified:
   grass/branches/releasebranch_7_4/imagery/i.ortho.photo/i.ortho.photo/menu.c
Log:
i.ortho.photo: fix segfault (trunk, r72075); fixes #3477

Modified: grass/branches/releasebranch_7_4/imagery/i.ortho.photo/i.ortho.photo/menu.c
===================================================================
--- grass/branches/releasebranch_7_4/imagery/i.ortho.photo/i.ortho.photo/menu.c	2018-01-15 15:20:19 UTC (rev 72079)
+++ grass/branches/releasebranch_7_4/imagery/i.ortho.photo/i.ortho.photo/menu.c	2018-01-15 18:57:41 UTC (rev 72080)
@@ -89,17 +89,6 @@
     if ((p = strchr(group.name, '@')))
 	*p = 0;
 
-    /* get and check the group reference files */
-    /* Skip if you are creating the group right now */
-    if (strcmp(moduletorun, "i.group") != 0){
-    	if (!I_get_group_ref(group.name, &group.group_ref))
-		G_fatal_error(_("Pre-selected group <%s> not found"), group.name);
-	    I_get_group_ref(group.name, &group.group_ref);
-
-	    if (group.group_ref.nfiles <= 0)
-		G_fatal_error(_("Group [%s] contains no files"), group.name);
-    }
-
     I_put_group(group.name);
     /*-----------------------------*/
     /* END of group validity check */



More information about the grass-commit mailing list