History

python/lib/gen_code.py: fix regression from previous commit

Paul Brossier committed 10 years ago

Commit b71e8b61 parent 659900b1 file · +3 −0Browse files

Showing the changes to python/lib (1 of 1 file). Show all

Unified · Split

python/lib/gen_code.py+3−0
@@ -289,6 +289,9 @@ Py_{shortname}_new (PyTypeObject * pytype, PyObject * args, PyObject * kwds) · 288 unmodified lines
289289 name = p['name']
290290 return """
291291 self->{name} = {defval};
292+ if ({name} != NULL) {{
293+ self->{name} = {name};
294+ }}
292295 """.format(defval = aubiodefvalue[name], name = name)
293296
294297 def check_valid_smpl(self, p):

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t