From f13de53ad4259d76eb94161c57e2f5d03f169660 Mon Sep 17 00:00:00 2001 From: Kevin Easton Date: Sun, 24 Nov 2013 13:15:22 +0000 Subject: [PATCH] Fix bug introduced in r243 where /LASTLOG without -FILE no longer worked. Reported by jeezy. git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@479 13b04d17-f746-0410-82c6-800466cd88b0 --- source/lastlog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/lastlog.c b/source/lastlog.c index e5de6c4..31aa17d 100644 --- a/source/lastlog.c +++ b/source/lastlog.c @@ -434,7 +434,7 @@ BUILT_IN_COMMAND(lastlog) } } - if (!(fp = fopen(filename, file_open_type))) + if (filename && !(fp = fopen(filename, file_open_type))) { bitchsay("cannot open file %s", filename); return;