X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Fhello%2Fhello.c;h=7eecf69e83f0bbaf23949a71e191806bf884687a;hb=08b8805efffcad4e0f713272cac6f75390176396;hp=8147860a9c9f36716b60e6249f15564802d0fd10;hpb=a18071d177dc5d0c7a5b55e73867a893dd15386c;p=lttng-ust.git diff --git a/tests/hello/hello.c b/tests/hello/hello.c index 8147860a..7eecf69e 100644 --- a/tests/hello/hello.c +++ b/tests/hello/hello.c @@ -77,13 +77,15 @@ int main() usleep(100000); } - scanf("%*s"); + if (scanf("%*s") == EOF) + PERROR("scanf failed"); ltt_trace_stop("auto"); ltt_trace_destroy("auto", 0); DBG("TRACE STOPPED"); - scanf("%*s"); + if (scanf("%*s") == EOF) + PERROR("scanf failed"); return 0; }