diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-03-15 12:59:28 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-03-15 12:59:28 +0000 |
commit | 38f32265e48027874ea93d20a74cf12d606e772e (patch) | |
tree | d8303571a8f1564517ea38a41fbe1d7afdba77e1 /src | |
parent | 11b82133f7d92497f4057f0231ea7c982af1b9ce (diff) | |
download | gnunet-38f32265e48027874ea93d20a74cf12d606e772e.tar.gz gnunet-38f32265e48027874ea93d20a74cf12d606e772e.zip |
-check return value
Diffstat (limited to 'src')
-rw-r--r-- | src/util/pseudonym.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/pseudonym.c b/src/util/pseudonym.c index 2d0bf3fad..c2b95832e 100644 --- a/src/util/pseudonym.c +++ b/src/util/pseudonym.c | |||
@@ -288,6 +288,7 @@ read_info (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
288 | return GNUNET_OK; | 288 | return GNUNET_OK; |
289 | } | 289 | } |
290 | 290 | ||
291 | |||
291 | /** | 292 | /** |
292 | * Return unique variant of the namespace name. | 293 | * Return unique variant of the namespace name. |
293 | * Use it after GNUNET_PSEUDONYM_get_info() to make sure | 294 | * Use it after GNUNET_PSEUDONYM_get_info() to make sure |
@@ -319,7 +320,7 @@ GNUNET_PSEUDONYM_name_uniquify (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
319 | 320 | ||
320 | len = 0; | 321 | len = 0; |
321 | if (0 == STAT (fn, &sbuf)) | 322 | if (0 == STAT (fn, &sbuf)) |
322 | GNUNET_DISK_file_size (fn, &len, GNUNET_YES); | 323 | GNUNET_break (GNUNET_OK == GNUNET_DISK_file_size (fn, &len, GNUNET_YES)); |
323 | fh = GNUNET_DISK_file_open (fn, | 324 | fh = GNUNET_DISK_file_open (fn, |
324 | GNUNET_DISK_OPEN_CREATE | | 325 | GNUNET_DISK_OPEN_CREATE | |
325 | GNUNET_DISK_OPEN_READWRITE, | 326 | GNUNET_DISK_OPEN_READWRITE, |