git://scientific.zcu.cz
/
jra1mw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5015c9
)
Parsing IDs with colon in path (notifids).
author
František Dvořák
<valtri@civ.zcu.cz>
Thu, 29 Jul 2010 13:02:22 +0000
(13:02 +0000)
committer
František Dvořák
<valtri@civ.zcu.cz>
Thu, 29 Jul 2010 13:02:22 +0000
(13:02 +0000)
org.glite.jobid.api-c/src/cjobid.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.jobid.api-c/src/cjobid.c
b/org.glite.jobid.api-c/src/cjobid.c
index
7d8641e
..
bfd4203
100644
(file)
--- a/
org.glite.jobid.api-c/src/cjobid.c
+++ b/
org.glite.jobid.api-c/src/cjobid.c
@@
-166,11
+166,12
@@
int glite_jobid_parse(const char *idString, glite_jobid_t *jobId)
pom1 = strchr(pom, '/');
if (!pom1) { free(pom); free(out); return EINVAL; }
+ pom1[0] = '\0';
pom2 = strrchr(pom, ':');
if (pom2 && strchr(pom2,']')) pom2 = NULL;
- if ( pom2
&& (pom1 > pom2)
) {
+ if ( pom2 ) {
pom[pom2-pom] = '\0';
out->BShost = strdup(pom);
pom[pom1-pom] = '\0';