From d0c7529cb9833ede3595051df5599a11fe03be48 Mon Sep 17 00:00:00 2001 From: Reinhard Tartler Date: Thu, 5 Apr 2007 15:25:19 +0200 Subject: import new upstream --- plugin_file.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'plugin_file.c') diff --git a/plugin_file.c b/plugin_file.c index 368eec9..ed9faa8 100644 --- a/plugin_file.c +++ b/plugin_file.c @@ -1,4 +1,5 @@ -/* $Id: plugin_file.c,v 1.2 2006/07/19 01:57:01 cmay Exp $ +/* $Id: plugin_file.c 728 2007-01-14 11:14:38Z michael $ + * $URL: https://ssl.bulix.org/svn/lcd4linux/branches/0.10.1/plugin_file.c $ * * plugin to perform simple file operations * @@ -21,14 +22,6 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * - * - * $Log: plugin_file.c,v $ - * Revision 1.2 2006/07/19 01:57:01 cmay - * fixed double read of last line in file - * - * Revision 1.1 2006/02/19 15:42:19 reinelt - * file plugin from Chris Maj - * */ /* @@ -70,6 +63,7 @@ static void my_readline(RESULT * result, RESULT * arg1, RESULT * arg2) fp = fopen(R2S(arg1), "r"); if (!fp) { error("readline couldn't open file '%s'", R2S(arg1)); + value[0] = '\0'; } else { i = 0; while (!feof(fp) && i++ < reqline) { -- cgit v1.2.3