mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
glsl: Make sure not to dereference NULL.
Found by Coverity.
This commit is contained in:
parent
142909f19d
commit
3384179faa
1 changed files with 2 additions and 0 deletions
|
|
@ -574,6 +574,8 @@ ir_algebraic_visitor::handle_expression(ir_expression *ir)
|
|||
continue;
|
||||
|
||||
ir_expression *add_expr = floor_expr->operands[0]->as_expression();
|
||||
if (!add_expr)
|
||||
continue;
|
||||
|
||||
for (int j = 0; j < 2; j++) {
|
||||
ir_expression *abs_expr = add_expr->operands[j]->as_expression();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue