aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libplanfahr/lpf-manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libplanfahr/lpf-manager.c b/libplanfahr/lpf-manager.c
index 7f575a0..8cd6a81 100644
--- a/libplanfahr/lpf-manager.c
+++ b/libplanfahr/lpf-manager.c
@@ -101,7 +101,7 @@ GStrv lpf_manager_get_available_providers(void)
if (glob(pattern, GLOB_NOSORT, NULL, &globbuf))
goto out;
- if (!(providers = g_try_malloc (sizeof(gchar) * globbuf.gl_pathc + 1))) {
+ if (!(providers = g_try_malloc (sizeof(gchar*) * (globbuf.gl_pathc + 1)))) {
goto out;
}