[perl-Gtk2] Fix a compiler warning
- From: Torsten SchÃnfeld <tsch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [perl-Gtk2] Fix a compiler warning
- Date: Fri, 7 Oct 2011 19:49:58 +0000 (UTC)
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]