diff options
author | Mike Kestner <mkestner@ameritech.net> | 2001-03-18 22:08:38 +0000 |
---|---|---|
committer | Mike Kestner <mkestner@src.gnome.org> | 2001-03-18 22:08:38 +0000 |
commit | 545f0bd82088f4b50267071a51f60cbc841cc5e8 (patch) | |
tree | 25187ca548da00d3b0cd2b959ff594a01c37d89c /gdk-pixbuf | |
parent | ac68581f9655392ab4b41ac5d6b0b76c0adf532f (diff) | |
download | gtk+-545f0bd82088f4b50267071a51f60cbc841cc5e8.tar.gz |
Finally getting around to checkin per Havoc. This is the fix for bug
Finally getting around to checkin per Havoc. This is the fix for bug 51782.
2001-03-18 Mike Kestner <mkestner@ameritech.net>
* make-inline-pixbuf.c (main): Added logic to remove output when
failures occur.
Diffstat (limited to 'gdk-pixbuf')
-rw-r--r-- | gdk-pixbuf/ChangeLog | 5 | ||||
-rw-r--r-- | gdk-pixbuf/make-inline-pixbuf.c | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index 5cf930a817..feb54700ec 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,3 +1,8 @@ +2001-03-18 Mike Kestner <mkestner@ameritech.net> + + * make-inline-pixbuf.c (main): Added logic to remove output when + failures occur. + 2001-03-14 Havoc Pennington <hp@redhat.com> * Makefile.am (gdk-pixbuf-marshal.c): Use different temporary file diff --git a/gdk-pixbuf/make-inline-pixbuf.c b/gdk-pixbuf/make-inline-pixbuf.c index d0e41a24a1..65e1ed6f2d 100644 --- a/gdk-pixbuf/make-inline-pixbuf.c +++ b/gdk-pixbuf/make-inline-pixbuf.c @@ -150,6 +150,7 @@ main (int argc, char **argv) { gboolean ext_symbols = FALSE; FILE *outfile; + gchar *outfilename; int i; g_type_init (0); @@ -175,6 +176,7 @@ main (int argc, char **argv) exit (1); } + outfilename = argv[i]; ++i; fputs ("/* This file was automatically generated by the make-inline-pixbuf program.\n" @@ -198,7 +200,8 @@ main (int argc, char **argv) if (pixbuf == NULL) { fprintf (stderr, "%s\n", error->message); - + fclose (outfile); + remove (outfilename); exit (1); } |