fixed uuid compare

This commit is contained in:
Roberto De Ioris
2012-12-30 12:41:21 +01:00
parent e34371a974
commit 219d77fc17
+5 -2
View File
@@ -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;