diff options
author | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2008-01-28 21:32:01 +0000 |
---|---|---|
committer | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2008-01-28 21:32:01 +0000 |
commit | 9a77627a7d635bc1e064b0735c3c7190b0eacde4 (patch) | |
tree | dbf52857914235b8fd39402aa485bf36a3a9a0d2 /usr.bin/cvs/cvs.c | |
parent | 7ddd256f9e4ad13c847aeab5c64fb71f1bf86764 (diff) |
Zapped some variables which made the source harder to read (and to verify).
> Diff from Igor Zinovik
Diffstat (limited to 'usr.bin/cvs/cvs.c')
-rw-r--r-- | usr.bin/cvs/cvs.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/cvs/cvs.c b/usr.bin/cvs/cvs.c index db9458eea48..73dbc1fc916 100644 --- a/usr.bin/cvs/cvs.c +++ b/usr.bin/cvs/cvs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cvs.c,v 1.140 2008/01/10 10:05:40 tobias Exp $ */ +/* $OpenBSD: cvs.c,v 1.141 2008/01/28 21:32:00 tobias Exp $ */ /* * Copyright (c) 2006, 2007 Joris Vink <joris@openbsd.org> * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> @@ -497,7 +497,6 @@ cvs_read_rcfile(void) int cvs_var_set(const char *var, const char *val) { - char *valcp; const char *cp; struct cvs_var *vp; @@ -519,7 +518,6 @@ cvs_var_set(const char *var, const char *val) if (strcmp(vp->cv_name, var) == 0) break; - valcp = xstrdup(val); if (vp == NULL) { vp = xcalloc(1, sizeof(*vp)); @@ -529,7 +527,7 @@ cvs_var_set(const char *var, const char *val) } else /* free the previous value */ xfree(vp->cv_val); - vp->cv_val = valcp; + vp->cv_val = xstrdup(val); return (0); } |