From: nveid Date: Thu, 26 Oct 2006 12:11:56 +0000 (+0000) Subject: Checking Info for any attributes would crash the game. Fixed by setting the X-Git-Tag: 0.72p2~8 X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=aac5d8358466bea2ebd08096804ae923aba7b37d;p=cobramush.git Checking Info for any attributes would crash the game. Fixed by setting the attribute poitner to NULL initially. (cherry picked from commit 6b9d562dc7683bc801ef403d47cdea0f9203ff4f) --- 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;