X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fubus.git;a=blobdiff_plain;f=examples%2Fclient.c;h=952ab549453abbcf803d7eef9070d11cfd4c4d82;hp=b586eaffd1605f337b1e3f490c219fa2a5850505;hb=7798d56301b7264cbcea0a6a9225a210154c693a;hpb=2d660c519d2fcff95248da9f4fd9b37d61f9eb09 diff --git a/examples/client.c b/examples/client.c index b586eaf..952ab54 100644 --- a/examples/client.c +++ b/examples/client.c @@ -106,8 +106,10 @@ static void test_count(struct uloop_timeout *timeout) count_to += count_progression; s = count_to_number(count_to); - if (!s) + if (!s) { fprintf(stderr, "Could not allocate memory to count up to '%u'\n", count_to); + return; + } fprintf(stderr, "Sending count up to '%u'; string has length '%u'\n", count_to, (uint32_t)strlen(s));