cvs: /php3/functions gd.c

From: Date: Mon, 13 Mar 2000 10:09:25 +0000
Subject: cvs: /php3/functions gd.c
Groups: php.dev 
Request: Send a blank email to php-dev+get-16741@lists.php.net to get a copy of this message
rasmus Mon Mar 13 02:09:25 2000 EDT Modified files: /php3/functions gd.c Log: Oops - functions with optional args suck Index: php3/functions/gd.c diff -u php3/functions/gd.c:1.146 php3/functions/gd.c:1.147 --- php3/functions/gd.c:1.146 Sun Mar 12 19:30:54 2000 +++ php3/functions/gd.c Mon Mar 13 02:09:25 2000 @@ -29,7 +29,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: gd.c,v 1.146 2000/03/13 03:30:54 rasmus Exp $ */ +/* $Id: gd.c,v 1.147 2000/03/13 10:09:25 rasmus Exp $ */ /* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center, Cold Spring Harbor Labs. */ @@ -1026,7 +1026,7 @@ RETURN_FALSE; } - if (strlen(fn) && argc > 1) { + if (fn && strlen(fn) && argc > 1) { fp = fopen(fn, "wb"); if (!fp) { php3_error(E_WARNING, "ImageJpeg: unable to open %s for writing", fn);

« previous php.dev (#16741) next »