From 219d77fc17c2297eeddaf9bf6b03118eae0f831c Mon Sep 17 00:00:00 2001 From: Roberto De Ioris Date: Sun, 30 Dec 2012 12:41:21 +0100 Subject: [PATCH] fixed uuid compare --- core/utils.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/core/utils.c b/core/utils.c index 13090d58..75b65e83 100644 --- a/core/utils.c +++ b/core/utils.c @@ -4023,8 +4023,11 @@ void uwsgi_uuid(char *buf) { int uwsgi_uuid_cmp(char *x, char *y) { int i; for(i=0;i<36;i++) { - if (x[i] > y[i]) { - return 1; + if (x[i] != y[i]) { + if (x[i] > y[i]) { + return 1; + } + return 0; } } return 0;