-/* $OpenBSD: csh.c,v 1.42 2017/12/12 00:18:58 tb Exp $ */
+/* $OpenBSD: csh.c,v 1.43 2017/12/16 10:27:21 anton Exp $ */
/* $NetBSD: csh.c,v 1.14 1995/04/29 23:21:28 mycroft Exp $ */
/*-
printprompt();
(void) fflush(cshout);
}
- if (seterr) {
- free(seterr);
- seterr = NULL;
- }
+ free(seterr);
+ seterr = NULL;
/*
* Echo not only on VERBOSE, but also with history expansion. If there
-/* $OpenBSD: dol.c,v 1.20 2015/12/26 13:48:38 mestre Exp $ */
+/* $OpenBSD: dol.c,v 1.21 2017/12/16 10:27:21 anton Exp $ */
/* $NetBSD: dol.c,v 1.8 1995/09/27 00:38:38 jtc Exp $ */
/*-
if (dimen || bitset)
stderror(ERR_SYNTAX);
if (backpid != 0) {
- if (dolbang)
- free(dolbang);
+ free(dolbang);
setDolp(dolbang = putn(backpid));
}
goto eatbrac;
-/* $OpenBSD: error.c,v 1.12 2015/12/26 13:48:38 mestre Exp $ */
+/* $OpenBSD: error.c,v 1.13 2017/12/16 10:27:21 anton Exp $ */
/* $NetBSD: err.c,v 1.6 1995/03/21 09:02:47 cgd Exp $ */
/*-
}
}
- if (seterr) {
- free(seterr);
- seterr = NULL;
- }
+ free(seterr);
+ seterr = NULL;
if ((v = pargv) != NULL)
pargv = 0, blkfree(v);
-/* $OpenBSD: func.c,v 1.35 2017/08/30 06:42:21 anton Exp $ */
+/* $OpenBSD: func.c,v 1.36 2017/12/16 10:27:21 anton Exp $ */
/* $NetBSD: func.c,v 1.11 1996/02/09 02:28:29 christos Exp $ */
/*-
if (wp->w_fe0)
blkfree(wp->w_fe0);
- if (wp->w_fename)
- free(wp->w_fename);
+ free(wp->w_fename);
free(wp);
}
}
int i, maxi;
static Char *name = NULL;
- if (name)
- free(name);
+ free(name);
/*
* Find the longest environment variable
*/