minor improve
This commit is contained in:
parent
897ca481b6
commit
c1c9f9e736
4 changed files with 5 additions and 7 deletions
|
|
@ -308,7 +308,6 @@ int build_vres_name(char** vname, xce_limit_t* limit, char* user, char* queue,
|
|||
size_t bufsize = 0;
|
||||
FILE* fp = NULL;
|
||||
xce_consumer_t* c = NULL;
|
||||
int rc = 0;
|
||||
|
||||
*vname = NULL;
|
||||
if ((vname == NULL) || (limit == NULL) || (user == NULL) || (queue == NULL)
|
||||
|
|
@ -339,10 +338,8 @@ int build_vres_name(char** vname, xce_limit_t* limit, char* user, char* queue,
|
|||
fprintf(fp, "/p=%s", project);
|
||||
}
|
||||
|
||||
fflush(fp);
|
||||
|
||||
fclose(fp);
|
||||
|
||||
|
||||
if ((*vname) != NULL) {
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue