Bogusness may have happened using a variable assignment here before, but
proper parens mean that fd is always set by open(2) [in any part of C], and so we can accurately check for it returning -1, without feeling like we need to initialise fd to -1 in its declaration. In other words, fix a stylistic/bogus nit.
This commit is contained in:
parent
b23619e02a
commit
49d54362f1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98481
@ -193,7 +193,7 @@ char sfn[15] = ""; /* scratch file name */
|
||||
int
|
||||
open_sbuf(void)
|
||||
{
|
||||
int fd = -1;
|
||||
int fd;
|
||||
int u;
|
||||
|
||||
isbinary = newline_added = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user