extra: get max correctly
[smatch.git] / validation / sm_implied5.c
blob6ef69436791a4cb784b912dd9a1efddfc97a34b2
1 struct ture {
2 int a;
3 };
5 int out_a;
7 void func (void)
9 struct ture *aa;
10 int a = 0;
12 if (out_a) {
13 aa = returns_nonnull();
14 a = something();
16 if (a)
17 aa->a = 1;
18 aa->a = 0xF00D;
21 * check-name: Smatch implied #5
22 * check-command: smatch sm_implied5.c
24 * check-output-start
25 sm_implied5.c:18 func() error: potentially derefencing uninitialized 'aa'.
26 * check-output-end