allow passing NULL to temp_buf_resize() again.

2001-11-13  Michael Natterer  <mitch@gimp.org>

	* app/base/temp-buf.c: allow passing NULL to temp_buf_resize() again.
This commit is contained in:
Michael Natterer 2001-11-13 15:51:20 +00:00 committed by Michael Natterer
parent 63d75ee740
commit 95bc70d933
2 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2001-11-13 Michael Natterer <mitch@gimp.org>
* app/base/temp-buf.c: allow passing NULL to temp_buf_resize() again.
2001-11-13 Michael Natterer <mitch@gimp.org>
Sven Neumann <sven@gimp.org>

View File

@ -316,7 +316,6 @@ temp_buf_resize (TempBuf *buf,
{
gint size;
g_return_val_if_fail (buf != NULL, NULL);
g_return_val_if_fail (width > 0 && height > 0, NULL);
/* calculate the requested size */