From 8360d60b6adcad014b35519ecac9c116bc74a1e3 Mon Sep 17 00:00:00 2001 From: oetiker Date: Sun, 25 Jan 2009 18:38:34 +0000 Subject: [PATCH] define cwd where we need it and not outside git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1741 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_tool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/src/rrd_tool.c b/program/src/rrd_tool.c index d3bc2768..23e05c01 100644 --- a/program/src/rrd_tool.c +++ b/program/src/rrd_tool.c @@ -528,7 +528,6 @@ int HandleInputLine( #if defined(HAVE_SYS_STAT_H) struct stat st; #endif - char *cwd; /* To hold current working dir on call to pwd */ /* Reset errno to 0 before we start. */ @@ -561,6 +560,7 @@ int HandleInputLine( return (0); } if (argc > 1 && strcmp("pwd", argv[1]) == 0) { + char *cwd; /* To hold current working dir on call to pwd */ if (argc > 2) { printf("ERROR: invalid parameter count for pwd\n"); return (1); -- 2.30.2