Skip to content

Commit

Permalink
An example of how one unitialized variable can generate really
Browse files Browse the repository at this point in the history
dificult-to-trace bugs. Thanks to Jens Gammelgaard and support  B-)
(http://moodle.org/bugs/bug.php?op=show&bugid=6233)

Merged from MOODLE_16_STABLE
  • Loading branch information
stronk7 committed Aug 12, 2006
1 parent 613f306 commit 615b4a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backup/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 615b4a1

Please sign in to comment.