Diff for /qemu/qemu-option.c between versions 1.1.1.3 and 1.1.1.4

version 1.1.1.3, 2018/04/24 18:22:58 version 1.1.1.4, 2018/04/24 18:33:07
Line 394  QEMUOptionParameter *append_option_param Line 394  QEMUOptionParameter *append_option_param
 /*  /*
  * Parses a parameter string (param) into an option list (dest).   * Parses a parameter string (param) into an option list (dest).
  *   *
  * list is the templace is. If dest is NULL, a new copy of list is created for   * list is the template option list. If dest is NULL, a new copy of list is
  * it. If list is NULL, this function fails.   * created. If list is NULL, this function fails.
  *   *
  * A parameter string consists of one or more parameters, separated by commas.   * A parameter string consists of one or more parameters, separated by commas.
  * Each parameter consists of its name and possibly of a value. In the latter   * Each parameter consists of its name and possibly of a value. In the latter
Line 416  QEMUOptionParameter *parse_option_parame Line 416  QEMUOptionParameter *parse_option_parame
     char value[256];      char value[256];
     char *param_delim, *value_delim;      char *param_delim, *value_delim;
     char next_delim;      char next_delim;
     size_t num_options;  
   
     if (list == NULL) {      if (list == NULL) {
         return NULL;          return NULL;
     }      }
   
     if (dest == NULL) {      if (dest == NULL) {
         // Count valid options          dest = allocated = append_option_parameters(NULL, list);
         num_options = count_option_parameters(list);  
   
         // Create a copy of the option list to fill in values  
         dest = qemu_mallocz((num_options + 1) * sizeof(QEMUOptionParameter));  
         allocated = dest;  
         memcpy(dest, list, (num_options + 1) * sizeof(QEMUOptionParameter));  
     }      }
   
     while (*param) {      while (*param) {

Removed from v.1.1.1.3  
changed lines
  Added in v.1.1.1.4


unix.superglobalmegacorp.com