diff options
author | 2005-12-10 20:27:45 +0000 | |
---|---|---|
committer | 2005-12-10 20:27:45 +0000 | |
commit | 0450b43bdbf8d53e9344e764e99a49ed83762f26 (patch) | |
tree | b4174041dc322925841d014c7c076da2ada7f204 /usr.bin/cvs/logmsg.c | |
parent | Update (diff) | |
download | wireguard-openbsd-0450b43bdbf8d53e9344e764e99a49ed83762f26.tar.xz wireguard-openbsd-0450b43bdbf8d53e9344e764e99a49ed83762f26.zip |
switch to xmalloc stuff, me and xsa@ agreed on this a long
time ago, but we were being held back by jfb. too bad for him.
next step is to use fatal() through out the code for unrecoverable
errors instead of trying to be all nice and fluffy and reach main() again.
ok niallo@ and xsa@
Diffstat (limited to 'usr.bin/cvs/logmsg.c')
-rw-r--r-- | usr.bin/cvs/logmsg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/logmsg.c b/usr.bin/cvs/logmsg.c index 7a919b91787..1180ede690a 100644 --- a/usr.bin/cvs/logmsg.c +++ b/usr.bin/cvs/logmsg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: logmsg.c,v 1.21 2005/08/14 19:49:18 xsa Exp $ */ +/* $OpenBSD: logmsg.c,v 1.22 2005/12/10 20:27:45 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -287,7 +287,7 @@ cvs_logmsg_get(const char *dir, struct cvs_flist *added, break; } else if ((buf[0] == '\n') || (buf[0] == 'c')) { /* empty message */ - msg = strdup(""); + msg = xstrdup(""); break; } else if (buf[0] == 'e') continue; |