9
0
Fork 0

hush: fix compiler warning

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2008-08-26 11:24:01 +02:00
parent 8201d7c5fc
commit 2b729e45b4
1 changed files with 6 additions and 2 deletions

View File

@ -1412,11 +1412,15 @@ static int parse_stream_outer(struct p_context *ctx, struct in_str *inp, int fla
static int parse_string_outer(struct p_context *ctx, const char *s, int flag)
{
struct in_str input;
char *p = NULL;
char *p;
const char *cp;
int rcode;
if ( !s || !*s)
return 1;
if (!(p = strchr(s, '\n')) || *++p) {
cp = strchr(s, '\n');
if (!cp || *++cp) {
p = xmalloc(strlen(s) + 2);
strcpy(p, s);
strcat(p, "\n");