diff options
Diffstat (limited to 'source3/torture')
-rw-r--r-- | source3/torture/t_strstr.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/torture/t_strstr.c b/source3/torture/t_strstr.c index 25709526fe..7b928fb26b 100644 --- a/source3/torture/t_strstr.c +++ b/source3/torture/t_strstr.c @@ -11,7 +11,7 @@ int main(int argc, char *argv[]) int i; int iters = 1; - char *ret; + const char *ret = NULL; /* Needed to initialize character set */ lp_load("/dev/null", True, False, False); @@ -29,6 +29,9 @@ int main(int argc, char *argv[]) ret = strstr_m(argv[1], argv[2]); } + if (ret == NULL) + ret = "(null)"; + printf("%s\n", ret); return 0; |