use g_try_malloc and return error on not-enough-memory

2001-12-16  Havoc Pennington  <hp@pobox.com>

	* glib/gfileutils.c (get_contents_regfile): use g_try_malloc and
	return error on not-enough-memory
	(get_contents_stdio): ditto
This commit is contained in:
Havoc Pennington
2001-12-18 18:46:41 +00:00
committed by Havoc Pennington
parent 7a1088bc50
commit b0a42f2058
11 changed files with 162 additions and 72 deletions

View File

@@ -1,3 +1,9 @@
2001-12-16 Havoc Pennington <hp@pobox.com>
* glib/gfileutils.c (get_contents_regfile): use g_try_malloc and
return error on not-enough-memory
(get_contents_stdio): ditto
2001-12-17 Matthias Clasen <matthiasc@poet.de>
* glib/gspawn.c, glib/gspawn-win32.c: Use <envar>, not <envvar>.