[mw-devel] [Git][arthur/mw][master] Increment userposn in the right place in user_find_name

Andrew Price welshbyte at sucs.org
Fri Oct 23 17:04:41 BST 2015


Andrew Price pushed to branch master at Justin Mitchell / mw


Commits:
9803a14d by Andrew Price at 2015-10-23T17:03:15Z
Increment userposn in the right place in user_find_name

- - - - -


1 changed file:

- src/user.c


Changes:

=====================================
src/user.c
=====================================
--- a/src/user.c
+++ b/src/user.c
@@ -67,11 +67,11 @@ static int user_find_name(const char *name, struct person *user, int32_t *userpo
 			close(fd);
 			return 1;
 		}
-		*userposn += sizeof(*user);
 		if (!strcasecmp(user->name, name) && !u_del(user->status)) {
 			*found = 1;
 			break;
 		}
+		*userposn += sizeof(*user);
 	}
 	close(fd);
 	return 0;



View it on GitLab: https://projects.sucs.org/arthur/mw/commit/9803a14d340837519dcd51784cad8ee72f54b517
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/mw-devel/attachments/20151023/ae404d42/attachment.html>


More information about the mw-devel mailing list