Commit 94fc7c42 authored by Per Cederqvist's avatar Per Cederqvist

(cached_lookup_name): Don't follow the NULL pointer.

parent f180e5ef
/*
* $Id: simple-cache.c,v 0.87 1999/07/11 23:41:33 ceder Exp $
* $Id: simple-cache.c,v 0.88 1999/07/23 13:02:02 ceder Exp $
* Copyright (C) 1991-1999 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -40,7 +40,7 @@
#endif
static const char *
rcsid = "$Id: simple-cache.c,v 0.87 1999/07/11 23:41:33 ceder Exp $";
rcsid = "$Id: simple-cache.c,v 0.88 1999/07/23 13:02:02 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -1533,6 +1533,8 @@ cached_lookup_name(const String name,
for ( i = 0; i < no_of_match_info; i++ )
{
if (s_empty(match_table[i].name))
continue;
result->conf_nos[ i ] = match_table[i].conf_no;
result->type_of_conf[ i ] = small_conf_arr[ match_table[i].conf_no ]->type;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment