Skip to content

Commit f74713a

Browse files
committed
Merge branch 'bugfix/fix_openai_class_build_err' into 'main'
openai_demo: Fix function call class build wrong issue See merge request adf/esp-webrtc-solution!50
2 parents e0974fa + d0a5c66 commit f74713a

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)