Skip to content

Commit

Permalink
Fix uninitialized variable bugs
Browse files Browse the repository at this point in the history
The previous few commits introduced a couple of bugs where variables
could be used without being initialized.  Fix them.
  • Loading branch information
greghudson committed Jun 28, 2013
1 parent a6debff commit ed515a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/krb5/krb/plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ load_if_needed(krb5_context context, struct plugin_mapping *map,
const char *iname)
{
char *symname = NULL;
struct plugin_file_handle *handle;
struct plugin_file_handle *handle = NULL;
void (*initvt_fn)();

if (map->module != NULL || map->dyn_path == NULL)
Expand Down
1 change: 1 addition & 0 deletions src/plugins/pwqual/test/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ init_dict(combo_moddata dict, const char *dict_file)
/* Decompose the blob into newline-separated words. */
p = dict->word_block;
len = sb.st_size;
count = 0;
while (len > 0 && (t = memchr(p, '\n', len)) != NULL) {
*t = '\0';
len -= t - p + 1;
Expand Down

0 comments on commit ed515a3

Please sign in to comment.