Pi66

sta
minimal & simple status monitoring app.
git clone https://git.pi66.xyz/sta

← back to log

fix: remove dead malloc in init()

author: pi66
date: 2026-05-21 18:58
hash: 2736a1f27badf0e9af324dd29cced51ed70ff132

Diffstat:

M

sta.c
2 +++++++++++++++---------------
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
diff --git a/sta.c b/sta.c
index ea7b2cd..dcbc329 100644
--- a/sta.c
+++ b/sta.c
@@ -41,7 +41,7 @@ typedef struct {
 Pros *init()
 {
    Pros *list = malloc(sizeof(Pros));
-   list->process = malloc(sizeof(Pro));
+   list->process = NULL;
    list->count = 0;
    return list;
 }