X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftypesafe_cb%2F_info;h=b4f379dd48b020c29bf8f27c8da88a37831e619a;hp=165852a3be2a1a4dd7c884dfbe48084991292ae1;hb=5877402640cff05f779b23a730e4cc62d729113f;hpb=e7e57cbf6725debd99238ccd8e3bf273a8d7e61c diff --git a/ccan/typesafe_cb/_info b/ccan/typesafe_cb/_info index 165852a3..b4f379dd 100644 --- a/ccan/typesafe_cb/_info +++ b/ccan/typesafe_cb/_info @@ -106,7 +106,7 @@ * // Silly game to find the longest chain of values. * int main(int argc, char *argv[]) * { - * int i, run = 1, num = argv[1] ? atoi(argv[1]) : 0; + * int i, run = 1, num = argc > 1 ? atoi(argv[1]) : 0; * * for (i = 1; i < 1024;) { * // Since run is an int, compiler checks "add" does too.