diff options
author | Carl Hetherington <carl@carlh.net> | 2012-04-11 10:51:21 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2012-04-11 10:51:21 +0000 |
commit | 0860570c8cccb50229e5321477a72bce915f7235 (patch) | |
tree | 6f3a755d291bd3c6d06f93531d8faa1330005b14 /gtk2_ardour | |
parent | 86a86f482ffb715d4a594f93cf9ea4a2a312a20e (diff) |
Fix a few unchecked XML child / property lookups
(#4814).
git-svn-id: svn://localhost/ardour2/branches/3.0@11894 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/sfdb_ui.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/sfdb_ui.cc b/gtk2_ardour/sfdb_ui.cc index 1272263afb..dc9edf56c6 100644 --- a/gtk2_ardour/sfdb_ui.cc +++ b/gtk2_ardour/sfdb_ui.cc @@ -884,7 +884,7 @@ SoundFileBrowser::freesound_search() XMLNode *ofn_node = node->child ("original_filename"); XMLNode *dur_node = node->child ("duration"); - if (id_node && uri_node && ofn_node) { + if (id_node && uri_node && ofn_node && dur_node) { std::string id = id_node->child("text")->content(); std::string uri = uri_node->child("text")->content(); |