aboutsummaryrefslogtreecommitdiffstats
path: root/src/error.c
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2015-04-19 01:17:54 -0300
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2015-04-19 01:17:54 -0300
commit86b551fdf2a8bf5c6e3cebcc463ee830d65ced94 (patch)
tree2ea95245b5d1e82d8a7197206e2b640aa54119aa /src/error.c
parentfbc22f39090802845c3a046c3e10bae63d6af6cc (diff)
downloadblogc-86b551fdf2a8bf5c6e3cebcc463ee830d65ced94.tar.gz
blogc-86b551fdf2a8bf5c6e3cebcc463ee830d65ced94.tar.bz2
blogc-86b551fdf2a8bf5c6e3cebcc463ee830d65ced94.zip
safe mallocs are better :)
Diffstat (limited to 'src/error.c')
-rw-r--r--src/error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/error.c b/src/error.c
index 8475d66..8e19e6e 100644
--- a/src/error.c
+++ b/src/error.c
@@ -21,7 +21,7 @@
blogc_error_t*
blogc_error_new(blogc_error_type_t type, const char *msg)
{
- blogc_error_t *err = malloc(sizeof(blogc_error_t));
+ blogc_error_t *err = b_malloc(sizeof(blogc_error_t));
err->type = type;
err->msg = b_strdup(msg);
return err;