Fix: wrong casting of return value
A message that is not in the archive (sent off-list or not yet received): [email protected]
Merged!
Quoted 33 lines · Jonathan Rajotte Julien
The function
uri_parse_str_urlsreturn assize_tand the return was casted to asize_t. This caused the following error checking to fail as -1 was interpreted as 18446744073709551615.Fixes #803
Signed-off-by Jonathan Rajotte Julien <[email protected]>--- src/lib/lttng-ctl/save.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)src/lib/lttng-ctl/save.c +2
-1@@ -99,7 +99,8 @@ int lttng_save_session_attr_set_output_url( struct lttng_save_session_attr *attr, const char *url) { int ret = 0; -size_t len, size; +size_t len; +ssize_t size;struct lttng_uri *uris =NULL ;if (!attr) {Signature · 7 lines
2.0.0 _______________________________________________ lttng-dev mailing list [email protected] http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev