X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2Factuators%2Ffiletest.c;h=8dcc9df3db6ecbb60f49e5ff5bf67421c6e96cee;hb=e3e7914fe2f59765e5f92371329652a02518928c;hp=697753af203a1a57dec13a071c87881a63d4732b;hpb=450583abb79d5fedb0debabed073d9b191dac80c;p=matches%2FMCTX3420.git diff --git a/server/actuators/filetest.c b/server/actuators/filetest.c index 697753a..8dcc9df 100644 --- a/server/actuators/filetest.c +++ b/server/actuators/filetest.c @@ -4,8 +4,10 @@ static FILE * f = NULL; bool Filetest_Init(const char * name, int id) { f = fopen(name, "w"); + if (f == NULL) + return false; setbuf(f, NULL); // Unbuffer - return (f != NULL); + return true; } bool Filetest_Set(int id, double value)