diff --git a/sm5/smartd.c b/sm5/smartd.c index f3a86e062399a4d32431db685f6be40f594ffda1..dfdad3c6397105c6e8b8ca68569c19e159c00f7a 100644 --- a/sm5/smartd.c +++ b/sm5/smartd.c @@ -43,7 +43,7 @@ // CVS ID strings extern const char *CVSid1, *CVSid2; -const char *CVSid6="$Id: smartd.c,v 1.37 2002/10/28 23:47:00 ballen4705 Exp $" +const char *CVSid6="$Id: smartd.c,v 1.38 2002/10/29 00:02:43 ballen4705 Exp $" CVSID1 CVSID2 CVSID3 CVSID4 CVSID7; // global variable used for control of printing, passing arguments, etc. @@ -415,7 +415,7 @@ int ataCompareSmartValues2(struct ata_smart_values *new, int returnvalue; // check that attribute number in range, and no null pointers - if (n<0 || n>=NUMBER_ATA_SMART_ATTRIBUTES || !new || !old || !thre) + if (n<0 || n>=NUMBER_ATA_SMART_ATTRIBUTES || !new || !old || !thresholds) return 0; // pointers to disk's values and vendor's thresholds diff --git a/sm5/smartd.cpp b/sm5/smartd.cpp index 6cb7d515615b26ae5e544491b6f17baf3c35f5c8..6269b613f1216918dffb3e80db9353cd3ec5425d 100644 --- a/sm5/smartd.cpp +++ b/sm5/smartd.cpp @@ -43,7 +43,7 @@ // CVS ID strings extern const char *CVSid1, *CVSid2; -const char *CVSid6="$Id: smartd.cpp,v 1.37 2002/10/28 23:47:00 ballen4705 Exp $" +const char *CVSid6="$Id: smartd.cpp,v 1.38 2002/10/29 00:02:43 ballen4705 Exp $" CVSID1 CVSID2 CVSID3 CVSID4 CVSID7; // global variable used for control of printing, passing arguments, etc. @@ -415,7 +415,7 @@ int ataCompareSmartValues2(struct ata_smart_values *new, int returnvalue; // check that attribute number in range, and no null pointers - if (n<0 || n>=NUMBER_ATA_SMART_ATTRIBUTES || !new || !old || !thre) + if (n<0 || n>=NUMBER_ATA_SMART_ATTRIBUTES || !new || !old || !thresholds) return 0; // pointers to disk's values and vendor's thresholds