diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2013-01-08 02:39:22 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2013-01-08 02:39:22 -0800 |
commit | 552d8f394e7aa11f44fff479a69e93b81a9b2376 (patch) | |
tree | cef188b7b140f28bc54b0fd9a3ee39f0cf1b6fd5 /builtin_test.cpp | |
parent | f8e01628b2352d551d99e7e005653bc1ae20485b (diff) |
Make fishd base its variable files on the MAC address instead of hostname
Diffstat (limited to 'builtin_test.cpp')
-rw-r--r-- | builtin_test.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/builtin_test.cpp b/builtin_test.cpp index 79251252..a130ab99 100644 --- a/builtin_test.cpp +++ b/builtin_test.cpp @@ -580,7 +580,7 @@ expression *test_parser::parse_args(const wcstring_list_t &args, wcstring &err) append_format(err, L"test: unexpected argument at index %lu: '%ls'\n", (unsigned long)result->range.end, args.at(result->range.end).c_str()); } errored = true; - + delete result; result = NULL; } @@ -802,14 +802,14 @@ int builtin_test(parser_t &parser, wchar_t **argv) /* The first argument should be the name of the command ('test') */ if (! argv[0]) return BUILTIN_TEST_FAIL; - + /* Whether we are invoked with bracket '[' or not */ const bool is_bracket = ! wcscmp(argv[0], L"["); size_t argc = 0; while (argv[argc + 1]) argc++; - + /* If we're bracket, the last argument ought to be ]; we ignore it. Note that argc is the number of arguments after the command name; thus argv[argc] is the last argument. */ if (is_bracket) { @@ -825,7 +825,7 @@ int builtin_test(parser_t &parser, wchar_t **argv) } } - + /* Collect the arguments into a list */ const wcstring_list_t args(argv + 1, argv + 1 + argc); |