diff options
author | David Teirney <david@teirney.net> | 2011-08-28 23:07:53 +1200 |
---|---|---|
committer | David Teirney <david@teirney.net> | 2011-08-29 00:02:33 +1200 |
commit | 638d02ba94a2696035302ee86fc02d5f7375332b (patch) | |
tree | 582ab064850ee8f110e434c3a5924b8365b78a70 /lib | |
parent | 9350e5f5625b0ee0c49fa7980a8c933a02b6dbf1 (diff) |
Initialize all variables in the delete_command and fill_command to 0 to ensure they are known values if they aren't changed in the body of the method.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cmyth/libcmyth/proginfo.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/cmyth/libcmyth/proginfo.c b/lib/cmyth/libcmyth/proginfo.c index 7ad12dc8c0..0b957e52d4 100644 --- a/lib/cmyth/libcmyth/proginfo.c +++ b/lib/cmyth/libcmyth/proginfo.c @@ -393,10 +393,10 @@ delete_command(cmyth_conn_t control, cmyth_proginfo_t prog, char *cmd) char rec_end_ts[CMYTH_TIMESTAMP_LEN + 1]; char originalairdate[CMYTH_TIMESTAMP_LEN + 1]; char lastmodified[CMYTH_TIMESTAMP_LEN + 1]; - int err; - int count; - long r; - int ret; + int err = 0; + int count = 0; + long r = 0; + int ret = 0; if (!prog) { cmyth_dbg(CMYTH_DBG_ERROR, "%s: no program info\n", @@ -1243,8 +1243,8 @@ fill_command(cmyth_conn_t control, cmyth_proginfo_t prog, char *cmd) char rec_end_ts[CMYTH_TIMESTAMP_LEN + 1]; char originalairdate[CMYTH_TIMESTAMP_LEN + 1]; char lastmodified[CMYTH_TIMESTAMP_LEN + 1]; - int err; - int ret; + int err = 0; + int ret = 0; char *host = "mediamvp"; if (!prog) { |