two simple fixes

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@95 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2004-07-17 15:48:28 +00:00
parent d6d50b0eab
commit 765d2f70c7
2 changed files with 2 additions and 2 deletions

View file

@ -76,7 +76,7 @@ struct pa_modargs *pa_modargs_new(const char *args, const char* const* valid_key
if (args) {
enum { WHITESPACE, KEY, VALUE_START, VALUE_SIMPLE, VALUE_DOUBLE_QUOTES, VALUE_TICKS } state;
const char *p, *key, *value;
size_t key_len, value_len;
size_t key_len = 0, value_len = 0;
key = value = NULL;
state = WHITESPACE;

View file

@ -45,7 +45,7 @@ struct pa_resampler {
};
struct pa_resampler* pa_resampler_new(const struct pa_sample_spec *a, const struct pa_sample_spec *b) {
struct pa_resampler *r;
struct pa_resampler *r = NULL;
int err;
assert(a && b && pa_sample_spec_valid(a) && pa_sample_spec_valid(b));