Wed, 21 Oct 2015 10:16:09 -0400
Assign pointers to NULL rather than 0.
--- a/finch/getopt.c Wed Oct 21 09:44:50 2015 -0400 +++ b/finch/getopt.c Wed Oct 21 10:16:09 2015 -0400 @@ -108,7 +108,7 @@ Also, when `ordering' is RETURN_IN_ORDER, each non-option ARGV-element is returned here. */ -char *optarg = 0; +char *optarg = NULL; /* Index in ARGV of the next element to be scanned. This is used for communication to and from the caller @@ -327,7 +327,7 @@ { int option_index; - optarg = 0; + optarg = NULL; /* Initialize the internal data when the first call is made. Start processing options with ARGV-element 1 (since ARGV-element 0 @@ -607,7 +607,7 @@ optind++; } else - optarg = 0; + optarg = NULL; nextchar = NULL; } else
--- a/finch/libgnt/gnttextview.c Wed Oct 21 09:44:50 2015 -0400 +++ b/finch/libgnt/gnttextview.c Wed Oct 21 10:16:09 2015 -0400 @@ -353,8 +353,8 @@ double_click = FALSE; } else { double_click = TRUE; - select_start = 0; - select_end = 0; + select_start = NULL; + select_end = NULL; gnt_widget_draw(widget); return TRUE; }
--- a/libpurple/protocols/jabber/caps.c Wed Oct 21 09:44:50 2015 -0400 +++ b/libpurple/protocols/jabber/caps.c Wed Oct 21 10:16:09 2015 -0400 @@ -922,8 +922,8 @@ void jabber_caps_calculate_own_hash(JabberStream *js) { JabberCapsClientInfo info; PurpleHash *hasher; - GList *iter = 0; - GList *features = 0; + GList *iter = NULL; + GList *features = NULL; if (!jabber_identities && !jabber_features) { /* This really shouldn't ever happen */
--- a/libpurple/protocols/simple/simple.c Wed Oct 21 09:44:50 2015 -0400 +++ b/libpurple/protocols/simple/simple.c Wed Oct 21 10:16:09 2015 -0400 @@ -1478,7 +1478,7 @@ tmp = tmp2 + 1; while(*tmp == ' ') tmp++; } else - tmp = 0; + tmp = NULL; } if(!foundpidf && foundxpidf) needsxpidf = TRUE; }
--- a/libpurple/protocols/simple/sipmsg.c Wed Oct 21 09:44:50 2015 -0400 +++ b/libpurple/protocols/simple/sipmsg.c Wed Oct 21 10:16:09 2015 -0400 @@ -96,7 +96,7 @@ return NULL; } dummy = parts[1]; - dummy2 = 0; + dummy2 = NULL; while(*dummy==' ' || *dummy=='\t') dummy++; dummy2 = g_strdup(dummy); while(lines[i+1] && (lines[i+1][0]==' ' || lines[i+1][0]=='\t')) {
--- a/libpurple/protocols/zephyr/ZAsyncLocate.c Wed Oct 21 09:44:50 2015 -0400 +++ b/libpurple/protocols/zephyr/ZAsyncLocate.c Wed Oct 21 10:16:09 2015 -0400 @@ -102,7 +102,7 @@ if (!__locate_list) return (ENOMEM); } else { - __locate_list = 0; + __locate_list = NULL; } for (ptr=notice->z_message, i=0; i<__locate_num; i++) {
--- a/libpurple/protocols/zephyr/ZFlsLocs.c Wed Oct 21 09:44:50 2015 -0400 +++ b/libpurple/protocols/zephyr/ZFlsLocs.c Wed Oct 21 10:16:09 2015 -0400 @@ -25,7 +25,7 @@ free((char *)__locate_list); - __locate_list = 0; + __locate_list = NULL; __locate_num = 0; return (ZERR_NONE);
--- a/libpurple/protocols/zephyr/ZFlsSubs.c Wed Oct 21 09:44:50 2015 -0400 +++ b/libpurple/protocols/zephyr/ZFlsSubs.c Wed Oct 21 10:16:09 2015 -0400 @@ -25,7 +25,7 @@ free((char *)__subscriptions_list); - __subscriptions_list = 0; + __subscriptions_list = NULL; __subscriptions_num = 0; return (ZERR_NONE);
--- a/pidgin/getopt.c Wed Oct 21 09:44:50 2015 -0400 +++ b/pidgin/getopt.c Wed Oct 21 10:16:09 2015 -0400 @@ -108,7 +108,7 @@ Also, when `ordering' is RETURN_IN_ORDER, each non-option ARGV-element is returned here. */ -char *optarg = 0; +char *optarg = NULL; /* Index in ARGV of the next element to be scanned. This is used for communication to and from the caller @@ -327,7 +327,7 @@ { int option_index; - optarg = 0; + optarg = NULL; /* Initialize the internal data when the first call is made. Start processing options with ARGV-element 1 (since ARGV-element 0 @@ -607,7 +607,7 @@ optind++; } else - optarg = 0; + optarg = NULL; nextchar = NULL; } else