Coverity CID 3214: Check getrawpartition return code.
This commit is contained in:
parent
dc46554fdb
commit
c0dd54b15c
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: main.c,v 1.3 2005/07/25 11:26:40 drochner Exp $ */
|
||||
/* $NetBSD: main.c,v 1.4 2006/05/25 00:42:23 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2002, 2005
|
||||
@ -169,7 +169,8 @@ main(argc, argv)
|
||||
* to have more than one data track in one session, so we get
|
||||
* the same result.
|
||||
*/
|
||||
rawpart = getrawpartition();
|
||||
if ((rawpart = getrawpartition()) == -1)
|
||||
err(1, "Cannot get raw partition");
|
||||
i = ntracks;
|
||||
j = 0;
|
||||
while (--i >= 0 && j < MAXPARTITIONS) {
|
||||
|
Loading…
Reference in New Issue
Block a user