app/test: fix misplaced braces in devargs check
authorBruce Richardson <bruce.richardson@intel.com>
Wed, 19 Nov 2014 09:06:13 +0000 (09:06 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 24 Nov 2014 15:28:43 +0000 (16:28 +0100)
commit26138624815761416c0186674fc44bed9f615617
tree2d5e376c3dd3404a127dba920113837a36be5e6a
parent21cdbc42541bc542f3d4ca38472628cd9be5431d
app/test: fix misplaced braces in devargs check

This patch fixes two occurrences where a call to strncmp had the closing
brace in the wrong place. Changing this form:
if (strncmp(X,Y,sizeof(X) != 0))
which does a comparison of length 1, to
if (strncmp(X,Y,sizeof(X)) != 0)
which does the correct length comparison and then compares the result to
zero in the "if" part, as the author presumably originally intended.

Reported-by: Larry Wang <liang-min.wang@intel.com>
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
app/test/test_devargs.c