[perl-Gtk2] Fix a compiler warning



commit 743a965f1525fd4d0fe5184e616fead3431b46f3
Author: Torsten SchÃnfeld <kaffeetisch gmx de>
Date:   Fri Oct 7 21:48:54 2011 +0200

    Fix a compiler warning

 xs/GdkPixbuf.xs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/xs/GdkPixbuf.xs b/xs/GdkPixbuf.xs
index d39ef93..ed9df1c 100644
--- a/xs/GdkPixbuf.xs
+++ b/xs/GdkPixbuf.xs
@@ -490,7 +490,7 @@ gdk_pixbuf_new_from_data (class, data, colorspace, has_alpha, bits_per_sample, w
 	STRLEN len;
     CODE:
 	data_ptr = SvPV (data, len);
-	pix_ptr = Newx (pix_ptr, len, char);
+	Newx (pix_ptr, len, char);
 	Copy (data_ptr, pix_ptr, len, char);
 	RETVAL = gdk_pixbuf_new_from_data ((const guchar *) pix_ptr,
 	                                   colorspace, has_alpha,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]