Uninitialized variables

This commit is contained in:
mcafee%netscape.com 1999-03-05 04:40:14 +00:00
parent f85c648277
commit 87892281ff
7 changed files with 8 additions and 8 deletions

View File

@ -1346,7 +1346,7 @@ GlobalWindowImpl::Open(JSContext *cx,
}
nsAutoString mURL, mEmpty;
nsIURL* mDocURL;
nsIURL* mDocURL = 0;
nsIDocument* mDoc;
mURL.SetString(JS_GetStringChars(mJSStrURL));

View File

@ -1306,7 +1306,7 @@ int PREFIX(getAtts)(const ENCODING *enc, const char *ptr,
{
enum { other, inName, inValue } state = inName;
int nAtts = 0;
int open;
int open = 0;
for (ptr += MINBPC;; ptr += MINBPC) {
switch (BYTE_TYPE(enc, ptr)) {

View File

@ -246,7 +246,7 @@ char * nsFontMetricsGTK::PickAppropriateSize(char **names, XFontStruct *fonts, i
// XXX FIX ME
PRInt32 desiredpix = NSToIntRound(app2dev * desired);
XFontStruct *curfont;
PRInt32 closestmin = -1, minidx;
PRInt32 closestmin = -1, minidx = 0;
//first try an exact or closest smaller match...

View File

@ -231,7 +231,7 @@ output_row(gif_struct *gs)
*/
if (gs->progressive_display && gs->interlaced && (gs->ipass < 4))
{
uint row_dup, row_shift;
uint row_dup=0, row_shift=0;
switch (gs->ipass) {
case 1:
@ -668,7 +668,7 @@ gif_delay_time_callback(void *closure)
static int
gif_clear_screen(gif_struct *gs)
{
uint erase_width, erase_height, erase_x_offset, erase_y_offset;
uint erase_width=0, erase_height=0, erase_x_offset=0, erase_y_offset=0;
PRBool erase;
il_container *ic = gs->ic;

View File

@ -691,7 +691,7 @@ il_emit_row(
IL_Pixmap *mask = ic->mask;
NI_PixmapHeader *src_header = ic->src_header;
NI_PixmapHeader *img_header = &image->header;
NI_PixmapHeader *mask_header;
NI_PixmapHeader *mask_header = 0;
NI_ColorSpace *src_color_space = src_header->color_space;
NI_ColorSpace *img_color_space = img_header->color_space;
uint8 XP_HUGE *out;

View File

@ -524,7 +524,7 @@ void free_stub_context(MWContext *window_id)
extern "C" MWContext * XP_FindContextOfType (MWContext * context,
MWContextType type)
{
MWContext *window_id;
MWContext *window_id = 0;
/*
* Return the context that was passed in if it is the correct type

View File

@ -1306,7 +1306,7 @@ int PREFIX(getAtts)(const ENCODING *enc, const char *ptr,
{
enum { other, inName, inValue } state = inName;
int nAtts = 0;
int open;
int open = 0;
for (ptr += MINBPC;; ptr += MINBPC) {
switch (BYTE_TYPE(enc, ptr)) {