Permalink
Browse files

Forgot to intialize the stride

  • Loading branch information...
1 parent 5f8c97f commit e4f5282377b354585d38e43bf19e3ee24cad3877 @mgdm mgdm committed Aug 13, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 cairo_image_surface.c
View
@@ -55,7 +55,7 @@ ZEND_END_ARG_INFO()
#if CAIRO_VERSION < CAIRO_VERSION_ENCODE(1, 6, 0)
static int php_cairo_format_stride_for_width(cairo_format_t format, int width) {
- int bpp = 0;
+ int bpp = 0, stride = 0;
switch (format) {
case CAIRO_FORMAT_ARGB32:

0 comments on commit e4f5282

Please sign in to comment.