X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=genevent-new%2Fparser.c;h=84a0b5f4d273517f6912f22a5129b8b93541921b;hb=b0f04dc324c20f52f4673d23390b317939a64b9a;hp=785cb652aaf2a47e7771024817649956274c6f28;hpb=64a6ab100d91bcccd1a5abcd4f507f3060d58817;p=lttv.git diff --git a/genevent-new/parser.c b/genevent-new/parser.c index 785cb652..84a0b5f4 100644 --- a/genevent-new/parser.c +++ b/genevent-new/parser.c @@ -1495,7 +1495,8 @@ void sequence_push(sequence_t *t, void *elem) void *sequence_pop(sequence_t *t) { - return t->array[t->position--]; + if(t->position == 0) printf("Error : trying to pop an empty sequence"); + return t->array[--t->position]; }