Skip to content
Snippets Groups Projects
Commit 04bca9a1 authored by Don Lipari's avatar Don Lipari
Browse files

Modified get_resource_arg_range() to return full min/max values when input

string is null.  This fixes the srun -B option function as documented.
parent ac99d010
No related branches found
No related tags found
No related merge requests found
...@@ -353,10 +353,8 @@ get_resource_arg_range(const char *arg, const char *what, int* min, int *max, ...@@ -353,10 +353,8 @@ get_resource_arg_range(const char *arg, const char *what, int* min, int *max,
char *p; char *p;
long int result; long int result;
if (*arg == '\0') return true;
/* wildcard meaning every possible value in range */ /* wildcard meaning every possible value in range */
if (*arg == '*' ) { if ((*arg == '\0') || (*arg == '*' )) {
*min = 1; *min = 1;
*max = INT_MAX; *max = INT_MAX;
return true; return true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment