From a60df2c3db52b66fd3190c92ad9bc9b972e0d1fc Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 14 Aug 2011 22:20:09 -0400 Subject: Add missing initialization in service cache in nscd --- nscd/servicescache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nscd') diff --git a/nscd/servicescache.c b/nscd/servicescache.c index ec5a367db8..d3d5dce44e 100644 --- a/nscd/servicescache.c +++ b/nscd/servicescache.c @@ -102,7 +102,7 @@ cache_addserv (struct database_dyn *db, int fd, request_header *req, { /* We have no data. This means we send the standard reply for this case. */ - total = sizeof (notfound); + written = total = sizeof (notfound); if (fd != -1) written = TEMP_FAILURE_RETRY (send (fd, ¬found, total, -- cgit v1.2.3