Merge pull request #244 from rezso/patch-1

CMakeLists.txt: add missing regex for zstd
diff --git a/regress/liboverride-test.c b/regress/liboverride-test.c
index 29e4780..822ea5c 100644
--- a/regress/liboverride-test.c
+++ b/regress/liboverride-test.c
@@ -67,6 +67,12 @@
     if (getenv("LIBOVERRIDE_SET") == NULL) {
         char *cwd = getcwd(NULL, 0);
         char *so = (char *)malloc(strlen(cwd) + 64);
+        if (so == NULL) {
+            if (verbose) {
+                printf("malloc failed\n");
+            }
+            exit(2);
+        }
         sprintf(so, "%s/libliboverride.so", cwd);
         setenv("LIBOVERRIDE_SET", "1", 1);
         setenv("LD_PRELOAD", so, 1);