summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-01-04 21:51:47 +0100
committerLennart Poettering <lennart@poettering.net>2013-01-04 23:26:20 +0100
commit660ddc72f65474b4a16bd8a15d8f5cd1860b401b (patch)
treec30cd65e03d9c731dea71980b8f5e66f6f499568
parentb1c4ca25bf58e1925012d1dcdd83d61cecbf87fb (diff)
Make gcc a bit quieter
-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,