Fixing warning converting to non-pointer type char from NULL