9bb31a544ecfedd067f03a21c63f2905e7a9ad07 larrym Sat Apr 28 09:06:22 2012 -0700 fix compiler error diff --git src/hg/lib/jsHelper.c src/hg/lib/jsHelper.c index bd2a2e3..44d3afe 100644 --- src/hg/lib/jsHelper.c +++ src/hg/lib/jsHelper.c @@ -526,34 +526,33 @@ // NOTE: Adding to a NULL hash will add to the global "common" hash printed with jsonPrintGlobals(); { if (h == NULL) // If hash isn't provided, assume global { if (jsonGlobalsHash == NULL) jsonGlobalsHash = newJsonObject(newHash(8)); h = jsonGlobalsHash; } if(h->type != jsonObject) errAbort("jsonObjectAdd called on element with incorrect type (%d)", h->type); hashReplace(h->val.jeHash, name, ele); } void jsonListAdd(struct jsonElement *list, struct jsonElement *ele) { -struct slRef *e; if(list->type != jsonList) errAbort("jsonListAdd called on element with incorrect type (%d)", list->type); -slAddHead(&list->val.jeList, e); +slAddHead(&list->val.jeList, ele); } static char *makeIndentBuf(int indentLevel) { if (indentLevel < 0) return ""; char *indentBuf; indentBuf = needMem(indentLevel + 1); memset(indentBuf, '\t', indentLevel); indentBuf[indentLevel] = 0; return indentBuf; } static void jsonPrintRecurse(struct jsonElement *ele, int indentLevel) {