projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
066df8d
)
g_string_append_len() accept NULL with length == 0
author
Ryan Lortie
<desrt@desrt.ca>
Thu, 15 Apr 2010 14:11:30 +0000
(10:11 -0400)
committer
Ryan Lortie
<desrt@desrt.ca>
Thu, 15 Apr 2010 14:11:30 +0000
(10:11 -0400)
glib/gstring.c
patch
|
blob
|
history
diff --git
a/glib/gstring.c
b/glib/gstring.c
index
5a6b5df
..
c231f3e
100644
(file)
--- a/
glib/gstring.c
+++ b/
glib/gstring.c
@@
-874,7
+874,7
@@
g_string_append_len (GString *string,
gssize len)
{
g_return_val_if_fail (string != NULL, NULL);
- g_return_val_if_fail (val != NULL, string);
+ g_return_val_if_fail (
len == 0 ||
val != NULL, string);
return g_string_insert_len (string, -1, val, len);
}