edit error handling

This commit is contained in:
Mario Hüttel 2018-08-01 12:42:41 +02:00
parent 299d65aa6c
commit 1a6fdf59ab
1 changed files with 3 additions and 0 deletions

View File

@ -50,6 +50,9 @@ void vector_2d_rotate(struct vector_2d *vec, double angle)
double sin_val, cos_val;
struct vector_2d temp;
if (!vec)
return;
sin_val = sin(angle);
cos_val = cos(angle);