From 3c0aaee4dcdd4397162a76a5a7d9621e3b9df9fb Mon Sep 17 00:00:00 2001 From: Roman Bogorodskiy Date: Tue, 21 Aug 2007 18:40:08 +0000 Subject: [PATCH] Fix a typo - variable was used before declarated and the code was broken, though it was under #ifdef i386, so conky compiled fine on other arches. git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@924 7f574dfc-610e-0410-a909-a81674777703 --- src/freebsd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freebsd.c b/src/freebsd.c index 6f3c339a..8d5d265a 100644 --- a/src/freebsd.c +++ b/src/freebsd.c @@ -852,7 +852,7 @@ char int fd; struct apm_info info; - out = (char *)calloc(16, sizeof (char)); + (char *)out = (char *)calloc(16, sizeof (char)); fd = open(APMDEV, O_RDONLY); if (fd < 0) {