Overview
| Artifact ID: | 58ae45b79ae501f2814c2598f7a401fab8e5a13d07bc0ae0511f4c9590ea321b |
|---|---|
| Ticket: | de243b694daaf06e6a0fbcbeb7279c326c25551c
Several trim mechanisms cause segfault / wrong check for NTS |
| User & Date: | dgp on 2018-03-13 21:45:19 |
Changes
- icomment:
I was afraid this was bringing in a lot of copying, but I see that it is just a safety check, and the copying is done only when needed to establish the pre-conditions of the existing TclTrim* routines. That's nicer than a panic, though it does call into question what the caller is doing wrong. The TclTrim* routines have been internal only and all the internal callers meet the pre-conditions (If not, *that's* the bug to fix!), so this is a tiny bit of waste not strictly needed, but it makes things more robust and potentially useful to more callers without a lot of expense. Seems OK. Let me commit a few tweaks, and then I can merge.
- login: "dgp"
- mimetype: "text/plain"