summaryrefslogtreecommitdiff
path: root/ext/gd/gd.c
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2000-03-13 10:09:02 +0000
committerRasmus Lerdorf <rasmus@php.net>2000-03-13 10:09:02 +0000
commit9c192f526ea70f514b1f04f6745b0448d97e7942 (patch)
treec2313d03cba063e9ab46e99c269a3e552551ac95 /ext/gd/gd.c
parent70eb0c78f8cf35ef1f3542741927a01a717e9b5a (diff)
downloadphp-git-9c192f526ea70f514b1f04f6745b0448d97e7942.tar.gz
# Oops - functions with multiple optional args suck
Diffstat (limited to 'ext/gd/gd.c')
-rw-r--r--ext/gd/gd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c
index a14b8981f2..b471daa372 100644
--- a/ext/gd/gd.c
+++ b/ext/gd/gd.c
@@ -708,7 +708,7 @@ PHP_FUNCTION(imagejpeg)
}
}
- 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);