diff options
author | Ryan Lortie <desrt@desrt.ca> | 2010-01-27 21:30:26 -0500 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2010-01-27 21:33:35 -0500 |
commit | b0a0ac51cb7e628f90b8293c098a6a1a26425301 (patch) | |
tree | 9ec1dacc928aea90600bb67e62cd543e573eeef6 /README.in | |
parent | 2a19bb7699c13e6d7cc5761d9285617e6b2b51f7 (diff) | |
download | glib-b0a0ac51cb7e628f90b8293c098a6a1a26425301.tar.gz glib-b0a0ac51cb7e628f90b8293c098a6a1a26425301.tar.bz2 glib-b0a0ac51cb7e628f90b8293c098a6a1a26425301.zip |
Return NULL from g_mapped_file_get_contents()
In the case of an empty file, return NULL instead of "". This means
that the return result of g_mapped_file_get_contents() will always be
page-aligned.
Diffstat (limited to 'README.in')
-rw-r--r-- | README.in | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -39,6 +39,11 @@ Notes about GLib 2.24 while an object is being initialized. If this behavior is needed, setting a custom constructor that just chains up will re-enable this functionality. +* GMappedFile on an empty file now returns NULL for the contents instead of + returning an empty string. The documentation specifically states that code + may not rely on nul-termination here so any breakage caused by this change + is a bug in application code. + Notes about GLib 2.22 ===================== |