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:
66a19a6
)
return error from edg_wll_GetSequenceCode() rather than assert()ing
author
Aleš Křenek
<ljocha@ics.muni.cz>
Tue, 10 Apr 2007 15:23:44 +0000
(15:23 +0000)
committer
Aleš Křenek
<ljocha@ics.muni.cz>
Tue, 10 Apr 2007 15:23:44 +0000
(15:23 +0000)
org.glite.lb.common/src/context.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.lb.common/src/context.c
b/org.glite.lb.common/src/context.c
index
4ce4365
..
b60f5d7
100644
(file)
--- a/
org.glite.lb.common/src/context.c
+++ b/
org.glite.lb.common/src/context.c
@@
-332,8
+332,8
@@
char *edg_wll_GetSequenceCode(const edg_wll_Context ctx)
ret = strdup(ctx->p_seqcode.pbs);
break;
default:
- assert(0); /* seq. number type was not correctly set */
-
break
;
+ edg_wll_SetError(ctx,EINVAL,"edg_wll_GetSequenceCode(): sequence code type");
+
return NULL
;
}
return ret;