* dir.c (bracket): use NULL instead of 0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
73e0d386b8
commit
5b42ef645e
@ -1,3 +1,7 @@
|
||||
Sun Jul 18 03:19:14 2004 Akinori MUSHA <knu@iDaemons.org>
|
||||
|
||||
* dir.c (bracket): use NULL instead of 0.
|
||||
|
||||
Sun Jul 18 02:35:30 2004 Shugo Maeda <shugo@ruby-lang.org>
|
||||
|
||||
* lib/net/imap.rb (receive_responses): return if a LOGOUT response
|
||||
|
6
dir.c
6
dir.c
@ -185,14 +185,14 @@ bracket(p, s, flags)
|
||||
if (escape && *t1 == '\\')
|
||||
t1++;
|
||||
if (!*t1)
|
||||
return 0;
|
||||
return NULL;
|
||||
p = Next(t1);
|
||||
if (p[0] == '-' && p[1] != ']') {
|
||||
const char *t2 = p + 1;
|
||||
if (escape && *t2 == '\\')
|
||||
t2++;
|
||||
if (!*t2)
|
||||
return 0;
|
||||
return NULL;
|
||||
p = Next(t2);
|
||||
if (!ok && Compare(t1, s) <= 0 && Compare(s, t2) <= 0)
|
||||
ok = 1;
|
||||
@ -202,7 +202,7 @@ bracket(p, s, flags)
|
||||
ok = 1;
|
||||
}
|
||||
|
||||
return ok == not ? 0 : (char *)p + 1;
|
||||
return ok == not ? NULL : (char *)p + 1;
|
||||
}
|
||||
|
||||
/* If FNM_PATHNAME is set, only path element will be matched. (upto '/' or '\0')
|
||||
|
Loading…
x
Reference in New Issue
Block a user