Skip to content

Commit d0a5c66

Browse files
committed
openai_demo: Fix function call class build wrong issue
Closes #94
1 parent e0974fa commit d0a5c66

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

solutions/openai_demo/main/webrtc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ static void add_class(class_t *cls)
191191
if (classes == NULL) {
192192
classes = cls;
193193
} else {
194-
classes->next = cls;
194+
cls->next = classes;
195+
classes = cls;
195196
}
196197
}
197198

0 commit comments

Comments
 (0)