fix return values in process_tiff_image().

Thu, 20 Mar 2003 08:20:52 +0000

author
eric
date
Thu, 20 Mar 2003 08:20:52 +0000
changeset 148
d4a6e303703a
parent 147
090af3709920
child 149
460c336ec8d7

fix return values in process_tiff_image().

Makefile file | annotate | diff | revisions
tumble_tiff.c file | annotate | diff | revisions
     1.1 diff -r 090af3709920 -r d4a6e303703a Makefile
     1.2 --- a/Makefile	Thu Mar 20 07:53:09 2003 +0000
     1.3 +++ b/Makefile	Thu Mar 20 08:20:52 2003 +0000
     1.4 @@ -1,6 +1,6 @@
     1.5  # tumble: build a PDF file from image files
     1.6  # Makefile
     1.7 -# $Id: Makefile,v 1.37 2003/03/19 23:52:25 eric Exp $
     1.8 +# $Id: Makefile,v 1.38 2003/03/20 00:20:52 eric Exp $
     1.9  # Copyright 2001, 2002, 2003 Eric Smith <eric@brouhaha.com>
    1.10  #
    1.11  # This program is free software; you can redistribute it and/or modify
    1.12 @@ -57,7 +57,7 @@
    1.13  # let me know why so I can improve this Makefile.
    1.14  # -----------------------------------------------------------------------------
    1.15  
    1.16 -VERSION = 0.30
    1.17 +VERSION = 0.31
    1.18  
    1.19  PACKAGE = tumble
    1.20  
     2.1 diff -r 090af3709920 -r d4a6e303703a tumble_tiff.c
     2.2 --- a/tumble_tiff.c	Thu Mar 20 07:53:09 2003 +0000
     2.3 +++ b/tumble_tiff.c	Thu Mar 20 08:20:52 2003 +0000
     2.4 @@ -1,7 +1,7 @@
     2.5  /*
     2.6   * tumble: build a PDF file from image files
     2.7   *
     2.8 - * $Id: tumble_tiff.c,v 1.2 2003/03/19 23:02:28 eric Exp $
     2.9 + * $Id: tumble_tiff.c,v 1.3 2003/03/20 00:20:52 eric Exp $
    2.10   * Copyright 2001, 2002, 2003 Eric Smith <eric@brouhaha.com>
    2.11   *
    2.12   * This program is free software; you can redistribute it and/or modify
    2.13 @@ -255,6 +255,7 @@
    2.14  			 image_info_t *image_info,
    2.15  			 pdf_page_handle page)
    2.16  {
    2.17 +  bool result = 0;
    2.18    Rect rect;
    2.19    Bitmap *bitmap = NULL;
    2.20  
    2.21 @@ -321,15 +322,12 @@
    2.22  			  0); /* BlackIs1 */
    2.23  #endif
    2.24  
    2.25 -  if (bitmap)
    2.26 -    free_bitmap (bitmap);
    2.27 -  return (page);
    2.28 +  result = 1;
    2.29  
    2.30   fail:
    2.31    if (bitmap)
    2.32      free_bitmap (bitmap);
    2.33 -
    2.34 -  return (NULL);
    2.35 +  return (result);
    2.36  }
    2.37  
    2.38