From 930117bb1e08662ff3612b4bc2be688206dc5eca Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 4 Apr 2021 11:07:28 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- config.mk | 2 +- libcontacts_parse_contact.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.mk b/config.mk index aa81003..f785a40 100644 --- a/config.mk +++ b/config.mk @@ -4,5 +4,5 @@ MANPREFIX = $(PREFIX)/share/man CC = cc CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -CFLAGS = -std=c99 -Wall -O2 +CFLAGS = -std=c99 -Wall -Os LDFLAGS = -s diff --git a/libcontacts_parse_contact.c b/libcontacts_parse_contact.c index 1c2b336..3cfd54e 100644 --- a/libcontacts_parse_contact.c +++ b/libcontacts_parse_contact.c @@ -201,7 +201,7 @@ libcontacts_parse_contact(char *data, struct libcontacts_contact *contact) } while (0) char *p, *q, *test_tmp; - size_t i; + size_t i = 0; /* initialised to make compiler happy */ time_t t; void *temp; int state = 0; -- cgit v1.2.3-70-g09d2