Handle rrdppid like we do for all other child processes. The two warnings
in rrdp are probably false positives.
OK tb@
-/* $OpenBSD: main.c,v 1.140 2021/05/11 11:43:21 claudio Exp $ */
+/* $OpenBSD: main.c,v 1.141 2021/05/11 11:48:02 claudio Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
close(fd[0]);
rrdp = fd[1];
- } else
+ } else {
rrdp = -1;
+ rrdppid = -1;
+ }
if (timeout) {
/*
int withdraw)
{
XML_Parser p = dxml->parser;
- char *uri, hash[SHA256_DIGEST_LENGTH];
+ char *uri = NULL, hash[SHA256_DIGEST_LENGTH];
int i, hasUri = 0, hasHash = 0;
enum publish_type pub = PUB_UPD;
notification_done(struct notification_xml *nxml, char *last_mod)
{
struct delta_item *d;
- long long s, last_s;
+ long long s, last_s = 0;
nxml->current->last_mod = last_mod;
nxml->current->session_id = xstrdup(nxml->session_id);