mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
r6175: Fix crash bug and compiler warnings in strchr_m() test. Bugzilla #2565.
(This used to be commit 17d13b5713
)
This commit is contained in:
parent
1045c78624
commit
219ad7da07
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user