Changeset 4553


Ignore:
Timestamp:
07/23/08 18:41:47 (5 years ago)
Author:
tick
Message:

opkg: Fix a bug that ap may undefined.

by Alexandros Kostopoulos <akostop@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/target/opkg/libopkg/user.c

    r4357 r4553  
    3434     va_list ap; 
    3535     char *response; 
    36      va_start(ap, format); 
    3736 
    3837     do { 
     
    4140               question_len = len; 
    4241          } 
     42 
     43          va_start(ap, format); 
    4344          len = vsnprintf(question,question_len,format,ap); 
     45          va_end(ap); 
    4446     } while (len > question_len); 
    4547     response = strdup(opkg_cb_response(question)); 
Note: See TracChangeset for help on using the changeset viewer.