projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
define cwd where we need it and not outside
[rrdtool.git]
/
src
/
rrd_tool.c
diff --git
a/src/rrd_tool.c
b/src/rrd_tool.c
index
d3bc276
..
23e05c0
100644
(file)
--- a/
src/rrd_tool.c
+++ b/
src/rrd_tool.c
@@
-528,7
+528,6
@@
int HandleInputLine(
#if defined(HAVE_SYS_STAT_H)
struct stat st;
#endif
#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.
*/
/* Reset errno to 0 before we start.
*/
@@
-561,6
+560,7
@@
int HandleInputLine(
return (0);
}
if (argc > 1 && strcmp("pwd", argv[1]) == 0) {
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);
if (argc > 2) {
printf("ERROR: invalid parameter count for pwd\n");
return (1);