[hackers] [sbase] tail: gcc whines || Connor Lane Smith

From: <hg_AT_suckless.org>
Date: Fri, 10 Jun 2011 15:52:16 +0200 (CEST)

changeset: 74:361b9b5df1d2
tag: tip
user: Connor Lane Smith <cls_AT_lubutu.com>
date: Fri Jun 10 14:51:53 2011 +0100
files: tail.c
description:
tail: gcc whines

diff -r b3bacb1dcc87 -r 361b9b5df1d2 tail.c
--- a/tail.c Fri Jun 10 05:46:20 2011 +0100
+++ b/tail.c Fri Jun 10 14:51:53 2011 +0100
@@ -58,7 +58,7 @@
 {
         char **ring;
         long i, j;
- size_t *size;
+ size_t *size = NULL;
 
         if(!(ring = calloc(n, sizeof *ring)) || !(size = calloc(n, sizeof *size)))
                 eprintf("calloc:");
Received on Fri Jun 10 2011 - 15:52:16 CEST

This archive was generated by hypermail 2.2.0 : Fri Jun 10 2011 - 16:00:10 CEST