From 463beb5d96e4a75b53df2a15064901732d60e8ac Mon Sep 17 00:00:00 2001 From: Per Cederqvist <ceder@lysator.liu.se> Date: Sat, 1 Jun 2002 19:58:44 +0000 Subject: [PATCH] (mozilla_remote_commands): Don't dereference a NULL pointer. This fix was taken from <URL:http://gate.vi.nnov.ru/doc/ports/www/ netscape-remote/patches/> and is probably written by Kelly <kbyanc@posi.net>. Thanks! --- remote.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/remote.c b/remote.c index 3aed310..b5ecd47 100644 --- a/remote.c +++ b/remote.c @@ -502,6 +502,9 @@ mozilla_remote_commands (Display *dpy, Window window, char **commands) int status = 0; mozilla_remote_init_atoms (dpy); + if (commands == NULL) + return; + if (window == 0) window = mozilla_remote_find_window (dpy); else -- GitLab