]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/lib/smartall.c
Fix bug reported by jesper@schmitz.computer where bat hangs on FreeBSD
[bacula/bacula] / bacula / src / lib / smartall.c
index 61282d68a6b4646da9038441d5a0605e697a6dce..49a8c9fe8f032253a488937e210a9fc3afc645f9 100644 (file)
@@ -556,3 +556,10 @@ void operator delete(void *buf)
 #endif
 
 #endif
+
+/* Avoid aggressive optimization */
+void *bmemset(void *s, int c, size_t n)
+{
+   void *ret = memset(s, c, n);
+   return ret;
+}