aboutsummaryrefslogtreecommitdiffstats
path: root/plugin_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugin_file.c')
-rw-r--r--plugin_file.c12
1 files changed, 3 insertions, 9 deletions
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) {