diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-02-28 16:21:34 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-02-28 16:21:34 +0000 |
commit | de30f210414a1f1f296c0cfb4406b171c1fc7b62 (patch) | |
tree | 570cc93d141bb7e250c4e73fafc53eba7d6e70bc /src/util/os_installation.c | |
parent | 652e255add3511262060f3a13517716a72e3cb52 (diff) | |
download | gnunet-de30f210414a1f1f296c0cfb4406b171c1fc7b62.tar.gz gnunet-de30f210414a1f1f296c0cfb4406b171c1fc7b62.zip |
generally use GNUNET_assert() instead of GNUNET_abort() to also log the error
Diffstat (limited to 'src/util/os_installation.c')
-rw-r--r-- | src/util/os_installation.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/os_installation.c b/src/util/os_installation.c index cf3c027e9..bc7e49512 100644 --- a/src/util/os_installation.c +++ b/src/util/os_installation.c | |||
@@ -173,7 +173,7 @@ get_path_from_module_filename () | |||
173 | real_pathlen = GetModuleFileNameW (dll_instance, modulepath, pathlen * sizeof (wchar_t)); | 173 | real_pathlen = GetModuleFileNameW (dll_instance, modulepath, pathlen * sizeof (wchar_t)); |
174 | } while (real_pathlen >= pathlen && pathlen < 16*1024); | 174 | } while (real_pathlen >= pathlen && pathlen < 16*1024); |
175 | if (real_pathlen >= pathlen) | 175 | if (real_pathlen >= pathlen) |
176 | GNUNET_abort (); | 176 | GNUNET_assert (0); |
177 | /* To be safe */ | 177 | /* To be safe */ |
178 | modulepath[real_pathlen] = '\0'; | 178 | modulepath[real_pathlen] = '\0'; |
179 | 179 | ||
@@ -215,7 +215,7 @@ get_path_from_module_filename () | |||
215 | /* modulepath is GNUNET_PREFIX */ | 215 | /* modulepath is GNUNET_PREFIX */ |
216 | u8_string = u16_to_u8 (modulepath, wcslen (modulepath), NULL, &u8_string_length); | 216 | u8_string = u16_to_u8 (modulepath, wcslen (modulepath), NULL, &u8_string_length); |
217 | if (NULL == u8_string) | 217 | if (NULL == u8_string) |
218 | GNUNET_abort (); | 218 | GNUNET_assert (0); |
219 | 219 | ||
220 | upath = GNUNET_malloc (u8_string_length + 1); | 220 | upath = GNUNET_malloc (u8_string_length + 1); |
221 | memcpy (upath, u8_string, u8_string_length); | 221 | memcpy (upath, u8_string, u8_string_length); |