Commit 6036f5d6 authored by Nils Goroll's avatar Nils Goroll

dont print otherpath unless nun-NULL, test run cheat sheet

parent f186036b
......@@ -44,7 +44,8 @@ find /tmp/test -name file\*
test:
./a.out $(find /tmp/test -name file\*)
find /tmp/test -name file\* | gxargs pfexec truss -o /tmp/tr -f src/longpath_unsafe_test
find /tmp/test -name file\* | gxargs pfexec truss -o /tmp/tr -f src/longpath_test
*/
// for mko*temp*
......@@ -342,7 +343,8 @@ main(int argc, char *argv[]) {
path = argv[i];
otherpath = otherpath(argc, argv, i);
printf("length path, otherpath:\t%8zu\t%8zu\n", strlen(path), strlen(otherpath));
if (otherpath)
printf("length path, otherpath:\t%8zu\t%8zu\n", strlen(path), strlen(otherpath));
#if 0
printf("path: %s\n", path);
printf("otherpath: %s\n", otherpath);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment