Coverity CID 561: Remove dead code.
This commit is contained in:
parent
8a45d1a675
commit
58a505fcfe
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: shquote.c,v 1.7 2005/06/12 05:21:27 lukem Exp $ */
|
/* $NetBSD: shquote.c,v 1.8 2006/03/19 02:33:02 christos Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2001 Christopher G. Demetriou
|
* Copyright (c) 2001 Christopher G. Demetriou
|
||||||
@ -36,7 +36,7 @@
|
|||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#if defined(LIBC_SCCS) && !defined(lint)
|
#if defined(LIBC_SCCS) && !defined(lint)
|
||||||
__RCSID("$NetBSD: shquote.c,v 1.7 2005/06/12 05:21:27 lukem Exp $");
|
__RCSID("$NetBSD: shquote.c,v 1.8 2006/03/19 02:33:02 christos Exp $");
|
||||||
#endif /* LIBC_SCCS and not lint */
|
#endif /* LIBC_SCCS and not lint */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -151,8 +151,6 @@ shquote(const char *arg, char *buf, size_t bufsize)
|
|||||||
PUT('\'');
|
PUT('\'');
|
||||||
for (;;) {
|
for (;;) {
|
||||||
XLATE_INCH();
|
XLATE_INCH();
|
||||||
if (n == (size_t)-1)
|
|
||||||
goto bad;
|
|
||||||
if (n <= 0)
|
if (n <= 0)
|
||||||
break;
|
break;
|
||||||
arg += n;
|
arg += n;
|
||||||
|
Loading…
Reference in New Issue
Block a user