FS-11341: [core] clang static analyzer warning in switch_utils.h:switch_parse_cpu_string

This commit is contained in:
Mike Jerris 2018-08-21 17:50:30 +00:00
parent 1cc809c5d9
commit b03cde3c57
1 changed files with 1 additions and 1 deletions

View File

@ -1087,7 +1087,7 @@ static inline int32_t switch_parse_bandwidth_string(const char *bwv)
static inline uint32_t switch_parse_cpu_string(const char *cpu)
{
int cpu_count = switch_core_cpu_count();
int ncpu = cpu_count;
int ncpu;
if (!cpu) return 1;