mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[initialization] {0}; -> {};
Current compilers have no problems with this.
This commit is contained in:
parent
b434b11309
commit
75a0b14748
@ -133,7 +133,7 @@ void done_state_message(void);
|
|||||||
static inline struct connection_state
|
static inline struct connection_state
|
||||||
connection_state(enum connection_basic_state basic)
|
connection_state(enum connection_basic_state basic)
|
||||||
{
|
{
|
||||||
struct connection_state state = {0};
|
struct connection_state state = {};
|
||||||
|
|
||||||
assert(basic != S_ERRNO);
|
assert(basic != S_ERRNO);
|
||||||
if_assert_failed basic = S_INTERNAL;
|
if_assert_failed basic = S_INTERNAL;
|
||||||
@ -145,7 +145,7 @@ connection_state(enum connection_basic_state basic)
|
|||||||
static inline struct connection_state
|
static inline struct connection_state
|
||||||
connection_state_for_errno(int syserr)
|
connection_state_for_errno(int syserr)
|
||||||
{
|
{
|
||||||
struct connection_state state = {0};
|
struct connection_state state = {};
|
||||||
|
|
||||||
/* read_encoded_file() can pass syserr==0 here, so don't
|
/* read_encoded_file() can pass syserr==0 here, so don't
|
||||||
* assert otherwise. */
|
* assert otherwise. */
|
||||||
|
Loading…
Reference in New Issue
Block a user