summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChristian Brueffer <brueffer@FreeBSD.org>2009-11-04 13:40:50 +0000
committerChristian Brueffer <brueffer@FreeBSD.org>2009-11-04 13:40:50 +0000
commitfb6672a6f61ab57ac8500c55e61f735b42e6cef8 (patch)
treebfe3703ebd89122d45945178220f426b2395f7a2 /lib
parentb79155a7a5eaf445ac4769069c0be14204c2a113 (diff)
Notes
Diffstat (limited to 'lib')
-rw-r--r--lib/libstand/open.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libstand/open.c b/lib/libstand/open.c
index acbda1c9ed31..49dc6608ff43 100644
--- a/lib/libstand/open.c
+++ b/lib/libstand/open.c
@@ -113,6 +113,7 @@ open(const char *fname, int mode)
/* see if we opened a raw device; otherwise, 'file' is the file name. */
if (file == (char *)0 || *file == '\0') {
f->f_flags |= F_RAW;
+ f->f_rabuf = NULL;
return (fd);
}