diff options
author | Kjell Wooding <kjell@cvs.openbsd.org> | 2006-04-02 20:21:20 +0000 |
---|---|---|
committer | Kjell Wooding <kjell@cvs.openbsd.org> | 2006-04-02 20:21:20 +0000 |
commit | a549a1d7a917c0bfae329d45a5af791f1b5b6ffc (patch) | |
tree | 858829128098e60217592a3516e9b18728b3a55a /usr.bin | |
parent | 7d8833c8d0e498e7d3bbfee2f416c779e66fbac8 (diff) |
test char against '\0', not 0
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/mg/fileio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mg/fileio.c b/usr.bin/mg/fileio.c index d3429f22cdb..8b332174efd 100644 --- a/usr.bin/mg/fileio.c +++ b/usr.bin/mg/fileio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fileio.c,v 1.68 2005/12/20 06:17:36 kjell Exp $ */ +/* $OpenBSD: fileio.c,v 1.69 2006/04/02 20:21:19 kjell Exp $ */ /* This file is in the public domain. */ @@ -442,8 +442,8 @@ make_file_list(char *buf) if (buf[0] && buf[strlen(buf) - 1] != '/') { file = strrchr(dir, '/'); if (file) { - *file = 0; - if (*dir == 0) + *file = '\0'; + if (*dir == '\0') dir = "/"; } else return (NULL); |