summaryrefslogtreecommitdiff
path: root/README.in
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2010-01-27 21:30:26 -0500
committerRyan Lortie <desrt@desrt.ca>2010-01-27 21:33:35 -0500
commitb0a0ac51cb7e628f90b8293c098a6a1a26425301 (patch)
tree9ec1dacc928aea90600bb67e62cd543e573eeef6 /README.in
parent2a19bb7699c13e6d7cc5761d9285617e6b2b51f7 (diff)
downloadglib-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.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/README.in b/README.in
index 52707f7dd..94a3c2a6b 100644
--- a/README.in
+++ b/README.in
@@ -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
=====================