Print this page
1765 assert importing pool with number at start
*** 1986,1997 ****
if (argc != 0) {
char *endptr;
errno = 0;
searchguid = strtoull(argv[0], &endptr, 10);
! if (errno != 0 || *endptr != '\0')
searchname = argv[0];
found_config = NULL;
/*
* User specified a name or guid. Ensure it's unique.
*/
--- 1986,1999 ----
if (argc != 0) {
char *endptr;
errno = 0;
searchguid = strtoull(argv[0], &endptr, 10);
! if (errno != 0 || *endptr != '\0') {
searchname = argv[0];
+ searchguid = 0;
+ }
found_config = NULL;
/*
* User specified a name or guid. Ensure it's unique.
*/