~ubuntu-branches/ubuntu/hardy/wget/hardy-security

« back to all changes in this revision

Viewing changes to src/res.c

  • Committer: Bazaar Package Importer
  • Author(s): Noèl Köthe
  • Date: 2005-06-26 16:46:25 UTC
  • mfrom: (1.1.1 upstream) (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20050626164625-jjcde8hyztx7xq7o
Tags: 1.10-2
* wget-fix_error--save-headers patch from upstream
  (closes: Bug#314728)
* don't pattern-match server redirects patch from upstream
  (closes: Bug#163243)
* correct de.po typos
  (closes: Bug#313883)
* wget-E_html_behind_file_counting fix problem with adding the
  numbers after the html extension
* updated Standards-Version: to 3.6.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
167
167
  for (i = 0; i < specs->count; i++)
168
168
    if (specs->paths[i].user_agent_exact_p)
169
169
      ++cnt;
170
 
  newpaths = xmalloc (cnt * sizeof (struct path_info));
 
170
  newpaths = xnew_array (struct path_info, cnt);
171
171
  for (i = 0, j = 0; i < specs->count; i++)
172
172
    if (specs->paths[i].user_agent_exact_p)
173
173
      newpaths[j++] = specs->paths[i];
240
240
     the last `user-agent' instructions.  */
241
241
  int record_count = 0;
242
242
 
243
 
  struct robot_specs *specs = xmalloc (sizeof (struct robot_specs));
244
 
  memset (specs, '\0', sizeof (struct robot_specs));
 
243
  struct robot_specs *specs = xnew0 (struct robot_specs);
245
244
 
246
245
  while (1)
247
246
    {
407
406
  int i;
408
407
  for (i = 0; i < specs->count; i++)
409
408
    xfree (specs->paths[i].path);
410
 
  FREE_MAYBE (specs->paths);
 
409
  xfree_null (specs->paths);
411
410
  xfree (specs);
412
411
}
413
412
 
502
501
  if (!registered_specs)
503
502
    registered_specs = make_nocase_string_hash_table (0);
504
503
 
505
 
  /* Required to shut up the compiler. */
506
 
  old    = NULL;
507
 
  hp_old = NULL;
508
 
 
509
 
  if (hash_table_get_pair (registered_specs, hp, hp_old, old))
 
504
  if (hash_table_get_pair (registered_specs, hp, &hp_old, &old))
510
505
    {
511
506
      if (old)
512
507
        free_specs (old);