X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fuuid.cpp;h=dd59edc31c79e532f6b14bb8caa84d731fa430ef;hb=52cb8c0f651ade8d057a264eea1de534ead36517;hp=d4f0fb2bf1a748d6c9d087bbe83920702f5f430d;hpb=36038679a47861ffc7e937ea6446d6ca3805b109;p=lttng-tools.git diff --git a/src/common/uuid.cpp b/src/common/uuid.cpp index d4f0fb2bf..dd59edc31 100644 --- a/src/common/uuid.cpp +++ b/src/common/uuid.cpp @@ -57,6 +57,7 @@ int lttng_uuid_from_str(const char *str_in, lttng_uuid& uuid_out) if (sscanf(str_in, LTTNG_UUID_FMT, LTTNG_UUID_SCAN_VALUES(uuid_scan)) != LTTNG_UUID_LEN) { ret = -1; + goto end; } uuid_out = uuid_scan;