summaryrefslogtreecommitdiff
path: root/source3/rpcclient/cmd_eventlog.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/rpcclient/cmd_eventlog.c')
-rw-r--r--source3/rpcclient/cmd_eventlog.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/rpcclient/cmd_eventlog.c b/source3/rpcclient/cmd_eventlog.c
index c836564007..2a18645196 100644
--- a/source3/rpcclient/cmd_eventlog.c
+++ b/source3/rpcclient/cmd_eventlog.c
@@ -50,14 +50,13 @@ void cmd_eventlog(struct client_info *info, int argc, char *argv[])
uint32 num_of_bytes;
EVENTLOGRECORD ev;
- fstring journal;
- fstring temp;
+ char *journal = NULL;
flags=EVENTLOG_READ_SEQUENTIAL|EVENTLOG_READ_BACKWARD;
- while (next_token(NULL, temp, NULL, sizeof(temp)))
+ if (argc > 1)
{
- fstrcpy(journal, temp);
+ journal = argv[1];
}
/* open scheduler session. */