Revision: 68977
http://sourceforge.net/p/brlcad/code/68977
Author: brlcad
Date: 2016-10-04 06:35:07 +0000 (Tue, 04 Oct 2016)
Log Message:
-----------
few other places we do not properly reset errno before calling a function that
potentially sets it (e.g., strtod, strtol)
Modified Paths:
--------------
brlcad/trunk/src/libbu/opt.c
Modified: brlcad/trunk/src/libbu/opt.c
===================================================================
--- brlcad/trunk/src/libbu/opt.c 2016-10-04 06:30:12 UTC (rev 68976)
+++ brlcad/trunk/src/libbu/opt.c 2016-10-04 06:35:07 UTC (rev 68977)
@@ -841,6 +841,7 @@
BU_OPT_CHECK_ARGV0(msg, argc, argv, "bu_opt_int");
+ errno = 0;
l = strtol(argv[0], &endptr, 0);
if (endptr != NULL && strlen(endptr) > 0) {
@@ -876,6 +877,7 @@
BU_OPT_CHECK_ARGV0(msg, argc, argv, "bu_opt_long");
+ errno = 0;
l = strtol(argv[0], &endptr, 0);
if (endptr != NULL && strlen(endptr) > 0) {
@@ -903,6 +905,7 @@
BU_OPT_CHECK_ARGV0(msg, argc, argv, "bu_opt_fastf_t");
+ errno = 0;
d = strtod(argv[0], &endptr);
if (endptr != NULL && strlen(endptr) > 0) {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits