fix a static analyzer warning.