X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=formats%2Fctf%2Fcallbacks.c;h=71e3248868239fd806d6cceb2bdcce48e9e06886;hp=0c221f9da684e5dfe58b058548be4263fdbdabc7;hb=c462e188f3e7819c7bc74f671038cdbf36e8c3c0;hpb=7f89ddce05f0a5c985d6333fbe70a992da4bd244 diff --git a/formats/ctf/callbacks.c b/formats/ctf/callbacks.c index 0c221f9d..71e32488 100644 --- a/formats/ctf/callbacks.c +++ b/formats/ctf/callbacks.c @@ -16,6 +16,14 @@ * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. */ #include @@ -188,6 +196,8 @@ void process_callbacks(struct bt_ctf_iter *iter, assert(iter && stream); ret = extract_ctf_stream_event(stream, &ctf_data); + if (ret) + goto end; /* process all events callback first */ if (iter->main_callbacks.callback) {