reply-password: initialize 'length' variable
Follow-up for 1fd2786161
.
This fixes the following warning when built by clang:
```
../src/reply-password/reply-password.c:76:21 warning: variable 'length' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
```
Fixes CID#1396281 and CID#1396277.
This commit is contained in:
parent
ec9d636b37
commit
fd5ad16cfb
|
@ -37,7 +37,7 @@ static int send_on_socket(int fd, const char *socket_name, const void *packet, s
|
|||
int main(int argc, char *argv[]) {
|
||||
_cleanup_free_ char *packet = NULL;
|
||||
_cleanup_close_ int fd = -1;
|
||||
size_t length;
|
||||
size_t length = 0;
|
||||
int r;
|
||||
|
||||
log_set_target(LOG_TARGET_AUTO);
|
||||
|
|
Loading…
Reference in a new issue