g_strchug/g_strchomp/g_strstrip crash
- From: Joe Shaw <joe helixcode com>
- To: gtk-devel-list gnome org
- Subject: g_strchug/g_strchomp/g_strstrip crash
- Date: Fri, 8 Sep 2000 17:50:42 -0400 (EDT)
If a string passed to the g_strchug/g_strchomp/g_strstrip functions
consists of all spaces, it crashes. In these cases, I think it's probably
appropriate to return a g_strdup(""), but I wanted to run by the list to
see if everyone agrees as opposed to returning a NULL before I whip up a
patch.
Opinions?
Joe
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]