Dan McGee
c5982a3eb5
strtrim: don't move empty string
...
There were many cases where the string coming in was a blank line, e.g.
"\n\0", length 1. The trim routine starts by trimming leading spaces,
thus trimming everything. We would then proceed to do a memmove of the
NULL byte, which is completely worthless as we can just assign it
instead.
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-08-25 17:14:19 -05:00
..
2011-08-25 16:04:41 -05:00
2007-07-16 16:49:28 -04:00
2011-08-19 11:09:57 -05:00
2011-06-28 14:04:00 +10:00
2011-08-24 11:27:11 -05:00
2011-07-21 15:04:30 -05:00
2011-07-02 02:01:39 +10:00
2011-08-15 12:56:41 -05:00
2011-07-14 15:34:04 -05:00
2011-07-14 15:34:04 -05:00
2011-08-15 06:24:49 -05:00
2011-08-15 06:24:49 -05:00
2011-08-19 19:12:21 -05:00
2011-08-25 16:12:49 -05:00
2011-08-25 16:12:49 -05:00
2011-08-18 10:47:41 -05:00
2011-07-21 15:04:30 -05:00
2011-08-19 19:12:21 -05:00
2011-08-18 10:47:41 -05:00
2011-07-02 02:01:38 +10:00
2011-06-28 23:28:23 +10:00
2011-08-19 11:09:57 -05:00
2011-08-19 11:09:57 -05:00
2011-08-19 19:12:21 -05:00
2011-06-28 14:04:00 +10:00
2011-08-25 16:09:52 -05:00
2011-08-25 16:09:52 -05:00
2011-08-08 19:42:52 -05:00
2011-06-28 23:28:24 +10:00
2011-06-28 23:28:24 +10:00
2011-06-29 15:52:33 +10:00
2011-06-29 15:52:33 +10:00
2011-07-18 21:06:24 -05:00
2011-07-05 10:13:20 -05:00
2011-07-02 02:01:39 +10:00
2011-06-28 23:28:24 +10:00
2011-08-15 07:07:13 -05:00
2011-08-11 20:17:21 -05:00
2011-08-11 20:17:21 -05:00
2011-08-19 11:09:57 -05:00
2011-08-19 11:09:57 -05:00
2011-06-28 23:28:24 +10:00
2011-06-28 23:28:24 +10:00
2011-07-05 22:36:40 -05:00
2011-08-19 11:09:57 -05:00
2011-07-06 09:26:09 -05:00
2011-08-15 07:07:13 -05:00
2011-08-15 07:07:13 -05:00
2011-08-25 16:12:49 -05:00
2011-08-25 16:12:49 -05:00
2011-08-23 00:49:14 -05:00
2011-06-28 14:04:00 +10:00
2011-08-19 19:12:21 -05:00
2011-08-25 16:12:33 -05:00
2011-08-25 17:14:19 -05:00
2011-08-15 12:13:35 -05:00
2011-08-23 01:49:29 -05:00