~ubuntu-branches/ubuntu/hardy/libapache2-mod-python/hardy

« back to all changes in this revision

Viewing changes to src/_apachemodule.c

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski, Piotr Ozarowski
  • Date: 2006-10-12 17:14:47 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20061012171447-ji7e0w38nl37kknp
Tags: 3.2.10-2
[ Piotr Ozarowski ]
* Dependencies updated:
  + replaced apache2-common with apache2.2-common (closes: #391790)
  + bumped apache2-threaded-dev version (see above),
  + bumped python-central version (dh_python removed from debian/rules),
  + bumped debhelper version (see above),
  + added po-debconf to Build-Depends (lintian error).
* Removed deprecated dh_installmanpages from debian/rules
  (there are no manpages to install).
* Updated Dutch debconf translation from Vincent Zweije. (closes: #388834)
* Updated Czech debconf translation from Miroslav Kure. (closes: #384752)
* Updated Japanese debconf translation from Hideki Yamane. (closes: #391811)

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *
19
19
 * _apachemodule.c 
20
20
 *
21
 
 * $Id: _apachemodule.c 332807 2005-11-12 18:11:14Z nlehuen $
 
21
 * $Id: _apachemodule.c 420297 2006-07-09 13:53:06Z nlehuen $
22
22
 *
23
23
 */
24
24
 
315
315
            _PyString_Resize(&key, strlen(ckey));
316
316
            _PyString_Resize(&val, strlen(cval));
317
317
 
318
 
            if (key && val)
319
 
                PyList_Append(pairs, Py_BuildValue("(O,O)", key, val));
 
318
            if (key && val) {
 
319
                PyObject* listitem = Py_BuildValue("(O,O)", key, val);
 
320
                if(listitem) {
 
321
                    PyList_Append(pairs, listitem);
 
322
                    Py_DECREF(listitem);
 
323
                }
 
324
            }
320
325
 
321
326
        }
322
327
        Py_XDECREF(pair);