Fix "elfield" typo noted by Ben Ostrowsky
authorDan Scott <dscott@laurentian.ca>
Mon, 21 Oct 2013 15:12:06 +0000 (11:12 -0400)
committerDan Scott <dscott@laurentian.ca>
Mon, 21 Oct 2013 15:12:06 +0000 (11:12 -0400)
Per sylvar in IRC and in
https://bugs.launchpad.net/evergreen/+bug/1240636, "elfield" should be
"selfield" (even though the code in question is currently inside an "#if
0" block and will never execute).

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/c-apps/oils_sql.c

index eb3f48b..e72bb49 100644 (file)
@@ -4461,7 +4461,7 @@ char* SELECT (
 #if 0
                            if (is_agg->size || (flags & SELECT_DISTINCT)) {
 
 #if 0
                            if (is_agg->size || (flags & SELECT_DISTINCT)) {
 
-                                       const jsonObject* aggregate_obj = jsonObjectGetKeyConst( elfield, "aggregate");
+                                       const jsonObject* aggregate_obj = jsonObjectGetKeyConst( selfield, "aggregate");
                                    if ( ! obj_is_true( aggregate_obj ) ) {
                                            if (gfirst) {
                                                    gfirst = 0;
                                    if ( ! obj_is_true( aggregate_obj ) ) {
                                            if (gfirst) {
                                                    gfirst = 0;