src/hg/lib/jksql.c 1.136

1.136 2009/09/23 18:42:21 angie
Fixed compiler warnings from gcc 4.3.3, mostly about system calls whose return values weren't checked and non-literal format strings with no args.
Index: src/hg/lib/jksql.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/lib/jksql.c,v
retrieving revision 1.135
retrieving revision 1.136
diff -b -B -U 4 -r1.135 -r1.136
--- src/hg/lib/jksql.c	14 Sep 2009 20:33:13 -0000	1.135
+++ src/hg/lib/jksql.c	23 Sep 2009 18:42:21 -0000	1.136
@@ -1226,9 +1226,10 @@
     /* tab file on server requiries full path */
     strcpy(tabPath, "");
     if (path[0] != '/')
         {
-        getcwd(tabPath, sizeof(tabPath));
+        if (getcwd(tabPath, sizeof(tabPath)) == NULL)
+	    errAbort("sqlLoadTableFile: getcwd failed");
         strcat(tabPath, "/");
         }
     strcat(tabPath, path);
     localOpt = "";