Project

General

Profile

Bug #3013

lib/libpuffs/requests.c: 2* possible bad assert ?

Added by dcb 3 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
04/11/2017
Due date:
% Done:

0%


Description

1.

lib/libpuffs/requests.c:207]: (warning) Assert statement modifies 'winlen'.

Source code is

assert(winlen = sizeof(struct puffs_req));

Maybe better code

assert(winlen == sizeof(struct puffs_req));

2.

lib/libpuffs/requests.c:222]: (warning) Assert statement modifies 'winlen'.

Duplicate.

Also available in: Atom PDF