[GRASS5] r.support

Markus Neteler neteler at itc.it
Fri Apr 15 04:36:27 EDT 2005

On Thu, Apr 14, 2005 at 09:22:57PM -0700, Brad Douglas wrote:
> Let me know if you are still having trouble.  I believe it's a null
> dereference in G__find_file().  I just pointed a pointer to it, which
> should stop the segfault.
> I've tried it again and again with all option combinations and I still
> fail to crash.  Odd.

It still crashed, but I have applied this fix to CVS:

     /* Parse command-line options */
-    if (G_parser(argc, argv)) {
-        G_warning(_("Unable to parse arguments."));
-        G_usage();
-    }
+    if (G_parser(argc,argv))
+        exit(1);

I remember darkly that G_usage() should not be used any more.
The old code was from 5.x...

Now it works.


More information about the grass-dev mailing list