32 lines
951 B
Diff
32 lines
951 B
Diff
|
Fixes these two warnings:
|
||
|
|
||
|
certdump.c:938: warning: the address of 't' will always evaluate as 'true'
|
||
|
dotlock.c:457: warning: 'pid' may be used uninitialized in this function
|
||
|
|
||
|
Index: sm/certdump.c
|
||
|
===================================================================
|
||
|
--- sm/certdump.c (revision 4688)
|
||
|
+++ sm/certdump.c (working copy)
|
||
|
@@ -935,7 +935,7 @@
|
||
|
ksba_free (sexp);
|
||
|
|
||
|
ksba_cert_get_validity (cert, 0, t);
|
||
|
- if (t && *t)
|
||
|
+ if (*t)
|
||
|
sprintf (created, "%.4s-%.2s-%.2s", t, t+4, t+6);
|
||
|
else
|
||
|
*created = 0;
|
||
|
Index: jnlib/dotlock.c
|
||
|
===================================================================
|
||
|
--- jnlib/dotlock.c (revision 4688)
|
||
|
+++ jnlib/dotlock.c (working copy)
|
||
|
@@ -454,7 +454,7 @@
|
||
|
#else
|
||
|
char buffer_space[10+1+70+1]; /* 70 is just an estimated value; node
|
||
|
name are usually shorter. */
|
||
|
- int fd, pid;
|
||
|
+ int fd, pid = -1;
|
||
|
char *buffer, *p;
|
||
|
size_t expected_len;
|
||
|
int res, nread;
|