From 7c0b61313a0a90e951305a24686746cfb71ba510 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 9 Sep 2004 10:41:42 +0000 Subject: [PATCH] Avoid using NULL bfs in zebra_init --- index/zebraapi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 1.7.10.4