summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3f8fcdf)
raw | patch | inline | side by side (parent: 3f8fcdf)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 5 Jun 2016 12:35:36 +0000 (14:35 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 5 Jun 2016 12:35:36 +0000 (14:35 +0200) |
status is immediately overwritten in the next line.
src/write_graphite.c | patch | blob | history |
diff --git a/src/write_graphite.c b/src/write_graphite.c
index 5acda6e0994f738e1a8e42e3d2d3b59057a0ea8b..3dc4df426a932bb191db1460905b9e8500d4f155 100644 (file)
--- a/src/write_graphite.c
+++ b/src/write_graphite.c
static int wg_send_buffer (struct wg_callback *cb)
{
- ssize_t status = 0;
+ ssize_t status;
status = swrite (cb->sock_fd, cb->send_buf, strlen (cb->send_buf));
if (status != 0)