From: Adam Dickmeiss Date: Thu, 9 Sep 2004 10:41:42 +0000 (+0000) Subject: Avoid using NULL bfs in zebra_init X-Git-Tag: snippet.version.1~364 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=7c0b61313a0a90e951305a24686746cfb71ba510;p=idzebra-moved-to-github.git Avoid using NULL bfs in zebra_init --- diff --git a/index/zebraapi.c b/index/zebraapi.c index d1a3cce..d1bf1a4 100644 --- a/index/zebraapi.c +++ b/index/zebraapi.c @@ -1,4 +1,4 @@ -/* $Id: zebraapi.c,v 1.129 2004-09-09 09:07:12 adam Exp $ +/* $Id: zebraapi.c,v 1.130 2004-09-09 10:41:42 adam Exp $ Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004 Index Data Aps @@ -1751,6 +1751,8 @@ int zebra_init (ZebraHandle zh) bfs = bfs_create (res_get (zh->service->global_res, "register"), zh->path_reg); + if (!bfs) + return -1; if (rval && *rval) bf_cache (bfs, rval);