Ignore:
Timestamp:
Mar 15, 2019 10:22:11 AM (3 years ago)
Author:
ming
Message:

Re #2160: Fixed assertion in pjlib test due to uninitialized ioqueue op keys.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pjlib-test/ioq_tcp.c

    r4550 r5953  
    143143    int pending_op = 0; 
    144144    pj_ioqueue_op_key_t read_op, write_op; 
     145 
     146    // Init operation keys. 
     147    pj_ioqueue_op_key_init(&read_op, sizeof(read_op)); 
     148    pj_ioqueue_op_key_init(&write_op, sizeof(write_op)); 
    145149 
    146150    // Start reading on the server side. 
     
    303307    } 
    304308 
     309    // Init operation key. 
     310    pj_ioqueue_op_key_init(&accept_op, sizeof(accept_op)); 
     311 
    305312    // Concurrency 
    306313    rc = pj_ioqueue_set_default_concurrency(ioque, allow_concur); 
Note: See TracChangeset for help on using the changeset viewer.