5b8c4168d4807c729fc8b1f199d9eb03c9411069 galt Thu Mar 3 18:40:54 2016 -0800 Replacing simple literal NOSQLINJ in string with the #define NOSQLINJ. This is slightly better because the compiler can catch a mis-spelling of the NOSQLINJ keyword. This was suggested by Angie. diff --git src/hg/getRnaPred/getRnaPred.c src/hg/getRnaPred/getRnaPred.c index e9ffbdc..754bd8b 100644 --- src/hg/getRnaPred/getRnaPred.c +++ src/hg/getRnaPred/getRnaPred.c @@ -84,31 +84,31 @@ char *cdsOut = NULL; char *pslOut = NULL; char *suffix = ""; int maxSize = -1; char *genomeSeqs = NULL; struct nibTwoCache *getNibTwoCacheFromDb(char *db) /* get the nib or two-bit cache from database */ { struct sqlConnection *conn = hAllocConn(db); char nibTwoPath[PATH_LEN]; struct nibTwoCache *nibTwoCache; /* grab the first chromsome file name, if it's a nib, convert to * directory name */ -sqlNeedQuickQuery(conn, "NOSQLINJ select fileName from chromInfo limit 1", +sqlNeedQuickQuery(conn, NOSQLINJ "select fileName from chromInfo limit 1", nibTwoPath, sizeof(nibTwoPath)); if (nibIsFile(nibTwoPath)) { char *p = strrchr(nibTwoPath, '/'); if (p != NULL) *p = '\0'; else strcpy(nibTwoPath, "."); } nibTwoCache = nibTwoCacheNew(nibTwoPath); hFreeConn(&conn); return nibTwoCache; } struct nibTwoCache *getNibTwoCache(char *db)