Module Name: src Committed By: joerg Date: Sun Oct 13 20:09:02 UTC 2013
Modified Files: src/sys/lib/libsa: cread.c Log Message: Let's not use uninitialized variables to write to random memory locations, shall we? To generate a diff of this commit: cvs rdiff -u -r1.25 -r1.26 src/sys/lib/libsa/cread.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/lib/libsa/cread.c diff -u src/sys/lib/libsa/cread.c:1.25 src/sys/lib/libsa/cread.c:1.26 --- src/sys/lib/libsa/cread.c:1.25 Fri Oct 11 16:30:31 2013 +++ src/sys/lib/libsa/cread.c Sun Oct 13 20:09:02 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: cread.c,v 1.25 2013/10/11 16:30:31 pgoyette Exp $ */ +/* $NetBSD: cread.c,v 1.26 2013/10/13 20:09:02 joerg Exp $ */ /* * Copyright (c) 1996 @@ -259,7 +259,6 @@ open(const char *fname, int mode) int fd; struct sd *s = 0; - ss[fd] = NULL; if (((fd = oopen(fname, mode)) == -1) || (mode != 0)) /* compression only for read */ return fd;