X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=tests%2Fhello%2Fhello.c;h=7eecf69e83f0bbaf23949a71e191806bf884687a;hb=08b8805efffcad4e0f713272cac6f75390176396;hp=8147860a9c9f36716b60e6249f15564802d0fd10;hpb=a5f09c2c8efcc5fc047178bef0acb73552cdf390;p=ust.git diff --git a/tests/hello/hello.c b/tests/hello/hello.c index 8147860..7eecf69 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; }