[dovecot-cvs] dovecot/src/lib-storage/index index-storage.c,1.40,1.41

cras at procontrol.fi cras at procontrol.fi
Mon Oct 20 08:15:20 EEST 2003


Update of /home/cvs/dovecot/src/lib-storage/index
In directory danu:/tmp/cvs-serv771/lib-storage/index

Modified Files:
	index-storage.c 
Log Message:
Added t_strsplit_spaces().



Index: index-storage.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/index-storage.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- index-storage.c	23 Sep 2003 19:34:34 -0000	1.40
+++ index-storage.c	20 Oct 2003 04:15:18 -0000	1.41
@@ -181,10 +181,7 @@
 		return 0;
 
 	ret = 0;
-	for (arr = t_strsplit(fields, " ,"); *arr != NULL; arr++) {
-		if (*arr == '\0')
-			continue;
-
+	for (arr = t_strsplit_spaces(fields, " ,"); *arr != NULL; arr++) {
 		for (i = 0; field_names[i] != NULL; i++) {
 			if (strcasecmp(field_names[i], *arr) == 0) {
 				ret |= field_masks[i];



More information about the dovecot-cvs mailing list