ext/RMagick/rminfo.c in rmagick-1.9.3 vs ext/RMagick/rminfo.c in rmagick-1.10.0
- old
+ new
@@ -1,8 +1,8 @@
-/* $Id: rminfo.c,v 1.33 2005/06/19 20:26:34 rmagick Exp $ */
+/* $Id: rminfo.c,v 1.36 2006/01/18 00:23:03 rmagick Exp $ */
/*============================================================================\
-| Copyright (C) 2005 by Timothy P. Hunter
+| Copyright (C) 2006 by Timothy P. Hunter
| Name: rminfo.c
| Author: Tim Hunter
| Purpose: Info class method definitions for RMagick.
\============================================================================*/
@@ -175,11 +175,11 @@
VALUE
Info_authenticate_eq(VALUE self, VALUE passwd)
{
Info *info;
- char *passwd_p;
+ char *passwd_p = NULL;
long passwd_len = 0;
Data_Get_Struct(self, Info, info);
if (!NIL_P(passwd))
@@ -1225,11 +1225,11 @@
Purpose: Return the orientation attribute as an OrientationType enum value.
*/
VALUE
Info_orientation(VALUE self)
{
-#if defined(HAVE_IMAGE_ORIENTATION)
+#if defined(HAVE_IMAGEINFO_ORIENTATION)
Info *info;
Data_Get_Struct(self, Info, info);
return OrientationType_new(info->orientation);
#else
@@ -1245,11 +1245,11 @@
Raises: ArgumentError
*/
VALUE
Info_orientation_eq(VALUE self, VALUE inter)
{
-#if defined(HAVE_IMAGE_ORIENTATION)
+#if defined(HAVE_IMAGEINFO_ORIENTATION)
Info *info;
Data_Get_Struct(self, Info, info);
VALUE_TO_ENUM(inter, info->orientation, OrientationType);
return self;
@@ -1336,10 +1336,10 @@
VALUE
Info_sampling_factor_eq(VALUE self, VALUE sampling_factor)
{
Info *info;
- char *sampling_factor_p;
+ char *sampling_factor_p = NULL;
long sampling_factor_len = 0;
Data_Get_Struct(self, Info, info);
if (!NIL_P(sampling_factor))