diff options
Diffstat (limited to 'lib/sysfs_class.c')
-rw-r--r-- | lib/sysfs_class.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sysfs_class.c b/lib/sysfs_class.c index 6c969b5..9172a1e 100644 --- a/lib/sysfs_class.c +++ b/lib/sysfs_class.c @@ -264,7 +264,7 @@ struct sysfs_class *sysfs_open_class(const unsigned char *name) cls = alloc_class(); if (cls == NULL) { - perror("malloc"); + perror("calloc"); return NULL; } strcpy(cls->name, name); |