Search contrib/tcl for tcl startup.
authorBruce Momjian <bruce@momjian.us>
Fri, 2 Oct 1998 01:22:43 +0000 (01:22 +0000)
committerBruce Momjian <bruce@momjian.us>
Fri, 2 Oct 1998 01:22:43 +0000 (01:22 +0000)
src/backend/utils/adt/numutils.c
src/pl/tcl/mkMakefile.tcldefs

index 89e11e33d755dda11311b3831c18e2f7c5872b5d..81b142718283155001ed007a8d46a441beac0377 100644 (file)
@@ -50,7 +50,7 @@
 int32
 pg_atoi(char *s, int size, int c)
 {
-       long            l;
+       long            l = 0;
        char       *badp = (char *) NULL;
 
        Assert(s);
index ba1a9c63af9efa222711bf68116f70e99a2bd02d..9881d6bf99eeec38049fb79ab37d9e220bb6b4fe 100755 (executable)
@@ -5,12 +5,15 @@ else
     if [ -f /usr/lib/tclConfig.sh ]; then
        echo "using tclConfig.sh from /usr/lib"
        . /usr/lib/tclConfig.sh
+    elif [ -f /usr/contrib/lib/tclConfig.sh ]; then
+       echo "using tclConfig.sh from /usr/contrib/lib"
+       . /usr/contrib/lib/tclConfig.sh
     else
        if [ -f /usr/local/lib/tclConfig.sh ]; then
            echo "using tclConfig.sh from /usr/local/lib"
            . /usr/local/lib/tclConfig.sh
        else
-           echo "tclConfig.sh not found in /usr/lib or /usr/local/lib"
+           echo "tclConfig.sh not found in /usr/lib, /usr/contrib/lib, or /usr/local/lib"
            echo "I need this file! Please make a symbolic link to this file"
            echo "and start make again."
            exit 1