]> ruderich.org/simon Gitweb - coloredstderr/coloredstderr.git/blobdiff - tests/example.c
tests/example.c: Use errno = ENOMEM.
[coloredstderr/coloredstderr.git] / tests / example.c
index b1d42e3e53f7b4c84cf28ca820c1290585f0f1d4..fc5c01ecd73c4bf07a60305c4c4622b65892998a 100644 (file)
@@ -32,7 +32,7 @@ int main(int argc, char **argv unused) {
     printf("write to stdout\n");
     fflush(stdout);
 
-    errno = 0;
+    errno = ENOMEM;
     perror("error!");
 
     write(STDERR_FILENO, "write to stderr 2", 17);