summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/shared/calendarspec.c2
-rw-r--r--src/shared/util.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/calendarspec.c b/src/shared/calendarspec.c
index 3cddb0eed0..c2eae3f139 100644
--- a/src/shared/calendarspec.c
+++ b/src/shared/calendarspec.c
@@ -738,7 +738,7 @@ fail:
static int find_matching_component(const CalendarComponent *c, int *val) {
const CalendarComponent *n;
- int d;
+ int d = -1;
bool d_set = false;
int r;
diff --git a/src/shared/util.c b/src/shared/util.c
index 3f00db7f2c..49b58444c7 100644
--- a/src/shared/util.c
+++ b/src/shared/util.c
@@ -5682,7 +5682,7 @@ oom:
}
char *strip_tab_ansi(char **ibuf, size_t *_isz) {
- const char *i, *begin;
+ const char *i, *begin = NULL;
enum {
STATE_OTHER,
STATE_ESCAPE,