diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-07-17 18:20:57 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-07-17 18:20:57 +0000 |
commit | 5b42ef645e4487cb16b0091d933db97362291a2c (patch) | |
tree | 3e3587dcfd1ff3bea437081c5e2942a1bb74ca04 /dir.c | |
parent | 73e0d386b81191c2d838b05c8d095dff0945797e (diff) |
* 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
Diffstat (limited to 'dir.c')
-rw-r--r-- | dir.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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') |