Re: Patch for bug 51782



Mike Kestner <mkestner enteract com> writes:
> I've attached a small diff for that make-inline-pixbuf failure cleanup. 
> Let me know if I can commit.

If this was the apathy-inducing patch, I think it's probably OK to
commit. ;-)

Havoc

> 
> MikeIndex: gdk-pixbuf/make-inline-pixbuf.c
> ===================================================================
> RCS file: /cvs/gnome/gtk+/gdk-pixbuf/make-inline-pixbuf.c,v
> retrieving revision 1.5
> diff -u -r1.5 make-inline-pixbuf.c
> --- gdk-pixbuf/make-inline-pixbuf.c	2001/02/04 07:06:31	1.5
> +++ gdk-pixbuf/make-inline-pixbuf.c	2001/03/07 00:09:42
> @@ -150,6 +150,7 @@
>  {
>    gboolean ext_symbols = FALSE;
>    FILE *outfile;
> +  char *outfilename;
>    int i;
>    
>    g_type_init (0);
> @@ -175,6 +176,7 @@
>        exit (1);
>      }
>  
> +  outfilename = argv[i];
>    ++i;
>  
>    fputs ("/* This file was automatically generated by the make-inline-pixbuf program.\n"
> @@ -198,7 +200,8 @@
>        if (pixbuf == NULL)
>          {
>            fprintf (stderr, "%s\n", error->message);
> -
> +	  fclose (outfile);
> +	  remove (outfilename);
>            exit (1);
>          }
>  




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