382041de8c53d49aa1c8abbe0ca82a4ba55f0dee tdreszer Wed Apr 20 15:39:42 2011 -0700 Changed a wrong comment that Angie pointed out. diff --git src/lib/ra.c src/lib/ra.c index aa5e8c5..9ac4968 100644 --- src/lib/ra.c +++ src/lib/ra.c @@ -164,31 +164,31 @@ // Return ra stanza as an slPair list instead of a hash. Handy to preserve the order. // Will ignore '#' comments and if requsted, joins lines ending in continuation char '\'. { struct slPair *list = NULL; char *key, *val; if (!raSkipLeadingEmptyLines(lf, NULL)) return NULL; // Which function to use? boolean (*raNextTagAndVal)(struct lineFile *, char **, char **, struct dyString *) = raNextTagVal; if (!joined) raNextTagAndVal = raNextTagValUnjoined; while (raNextTagAndVal(lf, &key, &val, NULL)) { - slPairAdd(&list, key, cloneString(val)); // val is already cloned so just pass it through. + slPairAdd(&list, key, cloneString(val)); // key gets cloned by slPairAdd } slReverse(&list); return list; } struct slPair *raNextStanzaLinesAndUntouched(struct lineFile *lf) // Return list of lines starting from current position, up through last line of next stanza. // May return a few blank/comment lines at end with no real stanza. // Will join continuation lines, allocating memory as needed. // returns pairs with name=joined line and if joined, // val will contain raw lines '\'s and linefeeds, else val will be NULL. { struct slPair *pairs = NULL; boolean stanzaStarted = FALSE;