chiark / gitweb /
Make gcc a bit quieter
authorLennart Poettering <lennart@poettering.net>
Fri, 4 Jan 2013 20:51:47 +0000 (21:51 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 4 Jan 2013 22:26:20 +0000 (23:26 +0100)
src/shared/calendarspec.c
src/shared/util.c

index 3cddb0e..c2eae3f 100644 (file)
@@ -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;
 
index 3f00db7..49b5844 100644 (file)
@@ -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,