mirror of
https://github.com/clearml/dropbear
synced 2025-01-31 19:07:28 +00:00
explicitly initialization of static variables
This commit is contained in:
parent
a5e5bab74b
commit
c5b77e1b49
8
scp.c
8
scp.c
@ -772,7 +772,7 @@ void
|
|||||||
bwlimit(int amount)
|
bwlimit(int amount)
|
||||||
{
|
{
|
||||||
static struct timeval bwstart, bwend;
|
static struct timeval bwstart, bwend;
|
||||||
static int lamt, thresh = 16384;
|
static int lamt = 0, thresh = 16384;
|
||||||
uint64_t waitlen;
|
uint64_t waitlen;
|
||||||
struct timespec ts, rm;
|
struct timespec ts, rm;
|
||||||
|
|
||||||
@ -940,8 +940,8 @@ sink(int argc, char **argv)
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
if (targisdir) {
|
if (targisdir) {
|
||||||
static char *namebuf;
|
static char *namebuf = NULL;
|
||||||
static size_t cursize;
|
static size_t cursize = 0;
|
||||||
size_t need;
|
size_t need;
|
||||||
|
|
||||||
need = strlen(targ) + strlen(cp) + 250;
|
need = strlen(targ) + strlen(cp) + 250;
|
||||||
@ -1153,7 +1153,7 @@ usage(void)
|
|||||||
void
|
void
|
||||||
run_err(const char *fmt,...)
|
run_err(const char *fmt,...)
|
||||||
{
|
{
|
||||||
static FILE *fp;
|
static FILE *fp = NULL;
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
|
||||||
++errs;
|
++errs;
|
||||||
|
Loading…
Reference in New Issue
Block a user