Mercurial > mplayer.hg
comparison m_option.c @ 19358:41bcb2309c9c
Get rid of two initialized but unused variables
author | reimar |
---|---|
date | Wed, 09 Aug 2006 16:52:48 +0000 |
parents | 64d82a45a05d |
children | 02a18c52a42a |
comparison
equal
deleted
inserted
replaced
19357:59af53f4f436 | 19358:41bcb2309c9c |
---|---|
1835 ptr2 = NULL; | 1835 ptr2 = NULL; |
1836 } | 1836 } |
1837 if( ptr2!=NULL ) { | 1837 if( ptr2!=NULL ) { |
1838 | 1838 |
1839 // We got something, at least a username... | 1839 // We got something, at least a username... |
1840 int len = ptr2-ptr1; | |
1841 if(!m_option_list_find(desc->fields,"username")) { | 1840 if(!m_option_list_find(desc->fields,"username")) { |
1842 mp_msg(MSGT_CFGPARSER, MSGL_WARN, "Option %s: This URL doesn't have a username part.\n",name); | 1841 mp_msg(MSGT_CFGPARSER, MSGL_WARN, "Option %s: This URL doesn't have a username part.\n",name); |
1843 // skip | 1842 // skip |
1844 } else { | 1843 } else { |
1845 ptr3 = strstr(ptr1, ":"); | 1844 ptr3 = strstr(ptr1, ":"); |
1846 if( ptr3!=NULL && ptr3<ptr2 ) { | 1845 if( ptr3!=NULL && ptr3<ptr2 ) { |
1847 // We also have a password | 1846 // We also have a password |
1848 int len2 = ptr2-ptr3-1; | |
1849 if(!m_option_list_find(desc->fields,"password")) { | 1847 if(!m_option_list_find(desc->fields,"password")) { |
1850 mp_msg(MSGT_CFGPARSER, MSGL_WARN, "Option %s: This URL doesn't have a password part.\n",name); | 1848 mp_msg(MSGT_CFGPARSER, MSGL_WARN, "Option %s: This URL doesn't have a password part.\n",name); |
1851 // skip | 1849 // skip |
1852 } else { // Username and password | 1850 } else { // Username and password |
1853 if(dst) { | 1851 if(dst) { |