Clean-up: common: uuid: uninitialized output parameter on error
[lttng-tools.git] / src / common / uuid.cpp
index d4f0fb2bf1a748d6c9d087bbe83920702f5f430d..dd59edc31c79e532f6b14bb8caa84d731fa430ef 100644 (file)
@@ -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;
This page took 0.023416 seconds and 4 git commands to generate.