From: Rick Bird Date: Mon, 25 Apr 2011 17:57:52 +0000 (-0400) Subject: Looks like this should be initialized to 1. As the first if statement X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=6765d8bd3c669d534350b8e24a98bd587d3e0ec1;p=cobramush.git Looks like this should be initialized to 1. As the first if statement that changes the item sets it to 0 if no arg2 exists(which makes sense). Normal command operation is @atrlock obj=lock, or @atrlock obj. Thus no arg2 would be unlocking, and with arg2 would be a lock operation. IssueID #246 --- diff --git a/src/attrib.c b/src/attrib.c index 9765d62..9123efe 100644 --- a/src/attrib.c +++ b/src/attrib.c @@ -2085,7 +2085,7 @@ do_atrlock(dbref player, const char *xarg1, const char *arg2, dbref thing, creator; char *p, *arg1; ATTR *ptr; - int status = 0; /* FIXME: temporary workaround, see #246 */ + int status = 1; /* FIXME: Issue should be in testing, see #246 */ boolexp key; if (!arg2 || !*arg2)