-/* $OpenBSD: dired.c,v 1.68 2014/11/16 04:16:41 guenther Exp $ */
+/* $OpenBSD: dired.c,v 1.69 2014/12/30 22:05:32 bcallah Exp $ */
/* This file is in the public domain. */
char dname[NFILEN], *bufp, *slash;
struct buffer *bp;
- if (curbp->b_fname && curbp->b_fname[0] != '\0') {
+ if (curbp->b_fname[0] != '\0') {
(void)strlcpy(dname, curbp->b_fname, sizeof(dname));
if ((slash = strrchr(dname, '/')) != NULL) {
*(slash + 1) = '\0';
struct buffer *bp;
struct mgwin *wp;
- if (curbp->b_fname && curbp->b_fname[0] != '\0') {
+ if (curbp->b_fname[0] != '\0') {
(void)strlcpy(dname, curbp->b_fname, sizeof(dname));
if ((slash = strrchr(dname, '/')) != NULL) {
*(slash + 1) = '\0';