Revision: 77517
http://sourceforge.net/p/brlcad/code/77517
Author: starseeker
Date: 2020-10-20 19:07:41 +0000 (Tue, 20 Oct 2020)
Log Message:
-----------
Think we mean to check fn here, not rp? rp is uninitialized at this point
inthe code (thanks GCC)
Modified Paths:
--------------
brlcad/trunk/src/libbu/file.c
Modified: brlcad/trunk/src/libbu/file.c
===================================================================
--- brlcad/trunk/src/libbu/file.c 2020-10-20 17:39:06 UTC (rev 77516)
+++ brlcad/trunk/src/libbu/file.c 2020-10-20 19:07:41 UTC (rev 77517)
@@ -191,7 +191,8 @@
bu_file_same(const char *fn1, const char *fn2)
{
int ret = 0;
- char *rp1, *rp2;
+ char *rp1 = NULL;
+ char *rp2 = NULL;
if (UNLIKELY(!fn1 || !fn2)) {
return 0;
@@ -202,7 +203,7 @@
}
/* stdin is a special case */
- if (BU_STR_EQUAL(rp1, rp2) && BU_STR_EQUAL(rp1, "-")) {
+ if (BU_STR_EQUAL(fn1, fn2) && BU_STR_EQUAL(fn1, "-")) {
return 1;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits