Permalink
Browse files

An example of how one unitialized variable can generate really

dificult-to-trace bugs. Thanks to Jens Gammelgaard and support  B-)
(http://moodle.org/bugs/bug.php?op=show&bugid=6233)
  • Loading branch information...
1 parent 0fc2503 commit e8e814e5c703c0212b00e0e80d1a6b7825a1880c stronk7 committed Aug 12, 2006
Showing with 2 additions and 0 deletions.
  1. +2 −0 backup/lib.php
View
@@ -293,6 +293,8 @@ function backup_copy_dir($from_file,$to_file) {
global $CFG;
+ $status = true; // Initialize this, next code will change its value if needed
+
if (!is_dir($to_file)) {
//echo "<br />Creating ".$to_file; //Debug
umask(0000);

0 comments on commit e8e814e

Please sign in to comment.