chiark / gitweb /
fix gcc warnings about uninitialized variables
[elogind.git] / src / journal / catalog.c
index e505a05305fe241e49069e7e99b31a312ddf4f10..0801e135990c10c2fb51189043448f01c79c520f 100644 (file)
@@ -558,7 +558,7 @@ static const char *find_id(void *p, sd_id128_t id) {
 int catalog_get(const char* database, sd_id128_t id, char **_text) {
         _cleanup_close_ int fd = -1;
         void *p = NULL;
-        struct stat st;
+        struct stat st = {};
         char *text = NULL;
         int r;
         const char *s;