X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftal%2Fstr%2F_info;h=3037cfde2fba99fcf1e817c0117ed8b89909fee3;hp=cb81c9e19df33a64eb0e6323810d3d3129d9ff7e;hb=5877402640cff05f779b23a730e4cc62d729113f;hpb=e7e57cbf6725debd99238ccd8e3bf273a8d7e61c diff --git a/ccan/tal/str/_info b/ccan/tal/str/_info index cb81c9e1..3037cfde 100644 --- a/ccan/tal/str/_info +++ b/ccan/tal/str/_info @@ -20,6 +20,8 @@ * char *textfile; * char **lines; * + * if (argc > 2) + * errx(1, "Takes 0 or 1 arguments"); * // Grab lines in file. * textfile = grab_file(NULL, argv[1]); * if (!textfile)