]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
tools/tools-common.c: fix coding style complaint
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Fri, 11 Aug 2023 06:55:04 +0000 (12:25 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Fri, 11 Aug 2023 17:37:54 +0000 (11:37 -0600)
Fix the checkpatch.pl warnings, making it coding style complaint.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
src/tools/tools-common.c

index e79023b2b1f9ebb5a2bc32b11c825cbca508f5b0..d4d39521e791706602977839fb69835b177c396d 100644 (file)
@@ -161,6 +161,7 @@ int cgroup_string_list_add_item(struct cgroup_string_list *list, const char *ite
 
        if (list->size <= list->count) {
                char **tmp = realloc(list->items, sizeof(char *) * list->size*2);
+
                if (tmp == NULL)
                        return ECGFAIL;
                list->items = tmp;