X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tests%2Ftest-strtok_r.c;h=105a72adb0044f2453ab64f2a1fe0e9b7b625a64;hb=c5cf10598f8c9f4428291e9df3ecd72a05fb1ccf;hp=9f8d8986055bc6e640a675584a2b300fe94c353f;hpb=49c36903d6d65bed96cba31f05534510a21a68d7;p=sliver-openvswitch.git diff --git a/tests/test-strtok_r.c b/tests/test-strtok_r.c index 9f8d89860..105a72adb 100644 --- a/tests/test-strtok_r.c +++ b/tests/test-strtok_r.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010 Nicira Networks. + * Copyright (c) 2010 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -33,6 +33,6 @@ main(void) char *token1, *token2; token1 = strtok_r(string, ":", &save_ptr); token2 = strtok_r(NULL, ":", &save_ptr); - printf ("%s %s\n", token1, token2); + printf ("%s %s\n", token1 ? token1 : "NULL", token2 ? token2 : "NULL"); return 0; }