troglobit / finit

Fast init for Linux. Cookies included
https://troglobit.com/projects/finit/
MIT License
632 stars 63 forks source link

service.c: fix a regression #220

Closed liuming50 closed 2 years ago

liuming50 commented 2 years ago

A regression was introduced by commit f0f358a1: [ service.c: set/clear condition 'done' for run tasks ]

svc->type is a integer but mistakenly being used as string, which will cause crash.

Signed-off-by: Ming Liu liu.ming50@gmail.com

liuming50 commented 2 years ago

@troglobit Changes in V2:

1 Adjusted as you suggested in V1.

2 Fix another inconsistent coding style.

liuming50 commented 2 years ago

@troglobit Verified the crash fixed on a NXP imx27 and imx51 board.

troglobit commented 2 years ago

Thanks, looks good to me! :)