From 6b9d562dc7683bc801ef403d47cdea0f9203ff4f Mon Sep 17 00:00:00 2001 From: nveid Date: Thu, 26 Oct 2006 12:11:56 +0000 Subject: [PATCH] Checking Info for any attributes would crash the game. Fixed by setting the attribute poitner to NULL initially. --- game/txt/changes/0.72p2 | 1 + src/atr_tab.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/game/txt/changes/0.72p2 b/game/txt/changes/0.72p2 index 7f8294d..924f829 100644 --- a/game/txt/changes/0.72p2 +++ b/game/txt/changes/0.72p2 @@ -24,3 +24,4 @@ CobraMUSH Version 0.72p2 Guest was destroyed even though it was connected. [RLB] * Certain command restrictions that were applied did not give appropriate command failure messages correctly. [RLB] + * Checking info for any attributes would crash the game. [RLB] diff --git a/src/atr_tab.c b/src/atr_tab.c index d3316d3..c74dedc 100644 --- a/src/atr_tab.c +++ b/src/atr_tab.c @@ -443,6 +443,9 @@ void do_attribute_info(dbref player, char *name) { ATTR *ap; + + ap = NULL; + if (!name || !*name) { if(catchall) ap = catchall; -- 2.30.2