mirror of
https://git.savannah.gnu.org/git/screen.git
synced 2026-02-18 05:12:23 +02:00
Remove redundant if statements.
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
This commit is contained in:
committed by
Amadeusz Sławiński
parent
1d27740fd2
commit
4e1946df99
@@ -127,7 +127,6 @@ display_status_tsi()
|
||||
r = read(bd.bd_fd,ibuf,1);
|
||||
if (r != 1)
|
||||
return -1;
|
||||
if (r != -1)
|
||||
if (ibuf[0] == 'V')
|
||||
r = read(bd.bd_fd, ibuf, 3);
|
||||
else
|
||||
|
||||
@@ -80,8 +80,6 @@ register char *str1, *str2;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (len1 == 0)
|
||||
return 0;
|
||||
if ((cp = malloc((unsigned) len1 + add_colon + 1)) == NULL)
|
||||
Panic(0, "%s", strnomem);
|
||||
cp[len1 + add_colon] = '\0';
|
||||
|
||||
Reference in New Issue
Block a user