donotturnoff / aerend

My third year project
0 stars 0 forks source link

Check for null in client #167

Open donotturnoff opened 2 years ago

donotturnoff commented 2 years ago

Should each function ensure that the context is not null? And likewise, for those which take a pointer to a struct (e.g. ae_make_*), should they ensure it is not null? Or is that for the developer to do?

donotturnoff commented 2 years ago

Maybe use a compile-time flag to set this

donotturnoff commented 2 years ago

Other things should be checked for non-null, and also ensure no buffers are empty when being copied.