cvs: /php4/ext/gd gd.c
| From: | Rasmus Lerdorf | Date: | Mon, 13 Mar 2000 10:09:32 +0000 |
| Subject: | cvs: /php4/ext/gd gd.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-12036@lists.php.net to get a copy of this message | ||
rasmus Mon Mar 13 02:09:32 2000 EDT
Modified files:
/php4/ext/gd gd.c
Log:
# Oops - functions with multiple optional args suck
Index: php4/ext/gd/gd.c
diff -u php4/ext/gd/gd.c:1.44 php4/ext/gd/gd.c:1.45
--- php4/ext/gd/gd.c:1.44 Sun Mar 12 21:58:50 2000
+++ php4/ext/gd/gd.c Mon Mar 13 02:09:02 2000
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: gd.c,v 1.44 2000/03/13 05:58:50 rasmus Exp $ */
+/* $Id: gd.c,v 1.45 2000/03/13 10:09:02 rasmus Exp $ */
/* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center,
Cold Spring Harbor Labs. */
@@ -708,7 +708,7 @@
}
}
- if (argc > 1 && strlen(fn)) {
+ if (argc > 1 && fn && strlen(fn)) {
fp = fopen(fn, "wb");
if (!fp) {
php_error(E_WARNING, "ImageJpeg: unable to open %s for writing", fn);