# of bytes sent is not an error
authorMarcel Poul <marcel.poul@cern.ch>
Sun, 18 Mar 2012 00:39:21 +0000 (00:39 +0000)
committerMarcel Poul <marcel.poul@cern.ch>
Sun, 18 Mar 2012 00:39:21 +0000 (00:39 +0000)
emi.canl.canl-c/examples/canl_sample_client.c

index 04c65fc..dfd8851 100644 (file)
@@ -104,6 +104,7 @@ int main(int argc, char *argv[])
     if (err > 0) {
         buf[err] = '\0';
         printf ("[CLIENT] received: %s\n", buf);
+        err = 0;
     }
 
 end: